-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Predicate function for updating component. #235
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
Comments
I've also noticed that for your own props, shallowEqual is used, but for the store props, it's strict object identity only. This somewhat concerns me as it seems that it would be slightly tricky to always preserve the exact object instance just to optimize the comparison a little bit which we may not even need- or in other words, data sharing between immutable instances becomes mandatory, rather than a nice optimization. It would be nice if we could supply our own comparison or even just use shallowEqual. |
There is a possibility that we’ll make Just because that
This is incorrect.
Unfortunately I don't understand the problem you're describing at all. :-( Maybe some code would help? |
It would be nice to have an optional predicate function to pass to the connect function, so we can do
the usualfurther immutable data optimizations.Something like this:
then in handleChange:
P.D.: Happy New Year!
The text was updated successfully, but these errors were encountered: