Skip to content
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

Make setState return the state that was set #77

Merged
merged 1 commit into from
Jun 13, 2015
Merged

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jun 13, 2015

Related: #68, #62

I want to make this change to make custom dispatchers more composable.

The store is still managed by the “main” dispatcher, but now wrappers (such as a time travelling wrapper) are able to intercept the state that dispatcher is attempting to set, and, perhaps, put information of their own there too.

With this change, the setState call bubbles from the innermost dispatcher up to the Redux instance, and goes back with the state that was actually set.

gaearon added a commit that referenced this pull request Jun 13, 2015
Make setState return the state that was set
@gaearon gaearon merged commit 57a980b into master Jun 13, 2015
@gaearon gaearon deleted the set-state-returns branch June 13, 2015 13:22
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants