connected-next-router
provides the same expected behavior as connected-react-router
but it has the following caveats:
connected-next-router
does not include any of the selectors inconnected-react-router
likegetLocation
,getAction
,getHash
,getSearch
,createMatchSelector
.- There is a change in the API with how you use the actions in
connected-react-router
due to the need of specifyinghref
andas
for dynamic routes before Next.jsv10.x.x
. Fromv10.x.x
you do not need to passas
due to Automatic href Resolution. - The history action is not stored in the Redux state.
You might still see your code breaking as connected-next-router
uses next/router
which has a different API than connected-react-router
or react-router-redux
, so you need to test any of your references to connected-next-router
before putting anything into production.