-
Notifications
You must be signed in to change notification settings - Fork 177
compare state and prevState #85
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
Yes, I don't see why not. |
@wbuchwalter One of my cases is something like selecting already selected item, which shoudn't update state and force recalculating slice of same data. |
My question was more about trying to figure out a scenario where what you said would actually cause perf issues. But anyway, yes it should be easily doable. On Fri, May 27, 2016 at 5:47 AM -0700, "Bogdan Chadkin" notifications@github.com wrote: @wbuchwalter A case is something like selecting already selected item, which shoudn't update state and force recalculating slice of same data. — |
There is not so big perf issue, but still props recalculating in tens components could be prevented, this will save a bit of memory I think. |
Also nothing will work if somebody will forget to "immutate" store, which can force to follow the most important rule of redux. |
Added to 4.1.0 roadmap |
There is an optimization in react-redux which compares previous and current state and do not make slice if they are equal. Is it possible to introduce this optimization in ng-redux?
The text was updated successfully, but these errors were encountered: