Skip to content

Next.JS + Hot Module Reload #3348

Closed Answered by phryneas
jd-carroll asked this question in Q&A
Discussion options

You must be logged in to vote

If you modify a file that is required for your configureStore call, the file with your configureStore call will also reload - creating a new store. You can play around that with module.hot.accept and store.replaceReducers, but in the long run it's usually not worth doing do, as you probably won't be touching those files a lot, compared to your component files.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@phryneas
Comment options

Answer selected by jd-carroll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants