connected-react-router icon indicating copy to clipboard operation
connected-react-router copied to clipboard

Fix connected-react-router with fast refresh (hot reload)

Open mxck opened this issue 4 years ago • 0 comments

Currently connected-react-router doesn’t work as expected with Fast refresh (enabled by default in CRA, nextjs and React Native) - components not getting updates after changes applied.

This pull request:

  1. Tracks store changes - unsubscribes from old store and subscribes to new one.
  2. Uses up to date history action.

With this changes FAQ section regarding hot reload isn’t necessary.

mxck avatar Jan 21 '21 13:01 mxck