-
Notifications
You must be signed in to change notification settings - Fork 40
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
componentWillUpdate prevState #71
Comments
my thought is that this is an excellent point. For some reason I have not run into this yet. I think the solution is related to this issue. We need to create |
Agreed. For those that come across this I actually overcame the limitation for my situation by reading the state in the parent component and passing the prop in individually. |
Been giving this a lot of thought, and the main issue is that if you apply store state properties directly to component state, you risk name conflicts. Delorean's default behavior is to give every store's Pros for this change
Cons
|
Due to react not deep cloning objects (facebook/react#2914) and the way that Delorean passes entire stores into state this makes the prevState parameter of componentWillUpdate useless. The prevState is always the current state.
thoughts?
The text was updated successfully, but these errors were encountered: