connected-react-router
connected-react-router copied to clipboard
Fix connected-react-router with fast refresh (hot reload)
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:
- Tracks store changes - unsubscribes from old store and subscribes to new one.
- Uses up to date history action.
With this changes FAQ section regarding hot reload isn’t necessary.