This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
Boilerplate-begone!
We've banished all the boilerplate we could to arrive at a user-friendly, stable API! Goodbye, churn!
Patch
- Fixed a nasty bug where ignored route precedence and would mistake concrete routes for parameters (e.g. would display for routes like /:wantsparams). Coincidentally,
<Fragment>
now has full test coverage! 😆
Minor
- New, more robust test suite with greater coverage!
Breaking changes
- Removed the middleware! We now wrap dispatch in the store enhancer.
- The store enhancer now handles initial location state when passed a pathname and/or a query object! Consequently, we renamed initialStateForSSR to initialRouterState and made it private.
- The library now provides a default
history
instance and removes the need to provide a custom instance to both the store enhancer and the provider. - The enhancer now accepts:
- a
basename
option in the enhancer. - a
forServerRender
flag to determine which history instance to use internally (memory or browser).
- a