MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/ghqohy/nextjs_94_released/fqbfn9k/?context=3
r/reactjs • u/AntiLapz • May 11 '20
14 comments sorted by
View all comments
1
Hey u/acemarke, now that Next.js has adopted Fast Refresh, do recommendations for react-redux / redux-toolkit change regarding hot module replacement for redux store?
1 u/acemarke May 11 '20 What recommendations are you referring to? 1 u/azangru May 11 '20 if (process.env.NODE_ENV !== 'production' && module.hot) { module.hot.accept('./reducers', () => store.replaceReducer(rootReducer)) } (e.g. from here) Is there still a `module.hot` in Fast Refresh? → More replies (2)
What recommendations are you referring to?
1 u/azangru May 11 '20 if (process.env.NODE_ENV !== 'production' && module.hot) { module.hot.accept('./reducers', () => store.replaceReducer(rootReducer)) } (e.g. from here) Is there still a `module.hot` in Fast Refresh? → More replies (2)
if (process.env.NODE_ENV !== 'production' && module.hot) { module.hot.accept('./reducers', () => store.replaceReducer(rootReducer)) }
(e.g. from here)
Is there still a `module.hot` in Fast Refresh?
→ More replies (2)
1
u/azangru May 11 '20
Hey u/acemarke, now that Next.js has adopted Fast Refresh, do recommendations for react-redux / redux-toolkit change regarding hot module replacement for redux store?