v3.3.0
Fix sub-router createUrl
#154
When with createUrl
of a sub-router, from a sub-router, the URL wasn't build properly on the server-side. This cause a diff of render between server and client.
To resolve this issue we need to:
- Get an "is root router" state on server and client side
- Harly reset all Routers property on each http request (because the nodejs runtime is not clear on each http request)
- Rework
createUrl()
function: internalize all thegetUrlByRouteName
logic - Update and split tests
- Remove old core
getUrlByRouteName()
&getFullPathByPath()
- Remove core
compileUrl()
, use path-to-regexpcompile
instead