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

Support HMR by overriding store.replaceReducer() #32

Merged
merged 1 commit into from
Oct 15, 2017

Conversation

wacii
Copy link
Collaborator

@wacii wacii commented Sep 21, 2017

In order to support Hot Module Replacement you need to enhance the reducer each time store.replaceReducer() is called.

see #31

@sorodrigo
Copy link
Owner

Need time to test this. Thanks

@wacii wacii force-pushed the support-hmr branch 2 times, most recently from 68ea9bf to 178d743 Compare October 14, 2017 19:22
@wacii
Copy link
Collaborator Author

wacii commented Oct 14, 2017

Added an example. Its just a slight variation of the basic one, so the two could probably be combined.

@wacii
Copy link
Collaborator Author

wacii commented Oct 15, 2017

Changed my mind about the example. The library doesn't really change how HMR is implemented, so I just used it to verify the fix and removed it.

I'll merge once I've rebased.

@wacii wacii merged commit 318efb4 into sorodrigo:develop Oct 15, 2017
This was referenced Oct 15, 2017
@sorodrigo
Copy link
Owner

sorodrigo commented Oct 15, 2017

Thanks for taking care of this and other PRs @wacii

@wacii wacii deleted the support-hmr branch February 20, 2018 19:34
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.

2 participants