Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Predicate function for updating component. #235
It would be nice to have an optional predicate function to pass to the connect function, so we can do
Something like this:
then in handleChange:
P.D.: Happy New Year!
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
Unfortunately I don't understand the problem you're describing at all. :-( Maybe some code would help?