-
Notifications
You must be signed in to change notification settings - Fork 25
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
State is not treated as immutable #4
Comments
Because |
ya that was my thinking. Immutability would be nice, but in this case it would complicate things. I am open to ideas however for how it can be simply and performantly implemented. |
It might be nice to support Immutabile.JS and seamless-immutable out of the box. I don't think performance really matters since it's just run one time when the app is started. Checking for these libraries would only add a couple of lines of code. |
Actually I think this should be implemented as a transform. That would make a lot more sense. Then you could just run it before the immutability transform. |
The example setter and the current implementation mutate
state
in theversionSetter
code:and:
The text was updated successfully, but these errors were encountered: