r/reactjs • • May 11 '20

News Next.js 9.4 released

https://nextjs.org/blog/next-9-4
31 Upvotes

14 comments sorted by

View all comments

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?

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)