-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withState can only be used once #5
Comments
Thx for opening this report. Gonna check that asap. Bit busy at the moment but hope i can get an eye on it tomorrow. |
Hi @IgnusG Played around with the latest inferno version 1.6.2 and it seams like everything works as expected. I guess your syntax is the problem here. Can you show me a bit more code (the composing of your array for example?). what i've figured out is, that inferno treats it's setState a bit different than react does. If you call multiple example:
the first version causes 3 a working example of multiple
|
btw i've just updated incompose to |
I'm trying to use withState to set several setFoo functions but only one is ever applied. The others are ignored and throw undefined errors when used. My Example:
Only
setB
is set. This worked early march but now seems to be broken.The text was updated successfully, but these errors were encountered: