This repository was archived by the owner on Oct 26, 2018. It is now read-only.
2.0.2
Versions 2.0.0 and 2.0.1 were test releases for the 2.0 series. 2.0.2 is the first public release.
A whole new API, with many breaking changes:
syncReduxAndRouter
is gone. Instead, callsyncHistory
with just thehistory
object, which returns a middleware that you need to apply. (#141)- If you use redux devtools, you need to call
middleware.listenForReplays(store)
on the middleware returned fromsyncHistory
. Create the store first with the middleware, then call this function with the store. - Action creators are now contained in a single object called
routeActions
.go
,goBack
, andgoForward
action creators have been added. UPDATE_PATH
is nowUPDATE_LOCATION
.- The fully parsed location object is now stored in the state instead of a URL string. To access the path, use
state.routing.location.pathname
instead ofstate.routing.path
.