-
Notifications
You must be signed in to change notification settings - Fork 7
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
Is this an expected behavior of proxyMap #12
Comments
Yeah. It should be this way, and should not. state = { a, b }
// it should maintain ref equality
newState.a === oldState.b So It's a bit complicated, but one have to return the same objects, with a different setup. And I am not sure it is possible. To be more concrete - for this case it is possible - push "path" on component access, and pop it just after. So.any.deep.property access would work. Once you store variable somewhere Probably:
Look like PS: Thank you for an issue. |
Complicated... but I understand the object identity. |
Here's what I did: dai-shi/reactive-react-redux@23e2c5a The benchmark result seems good: dai-shi/reactive-react-redux#3 (comment) |
Hi, I'm trying to improve https:/dai-shi/react-hooks-easy-redux with proxyMap,
but it doesn't behave as I expect. Do I misunderstand the usage?
I was expecting
trapped2.affected
to be['.b']
andtrapped1.affected
to be kept['.a']
.The text was updated successfully, but these errors were encountered: