Skip to content

v3.3.0

Compare
Choose a tag to compare
@willybrauner willybrauner released this 09 Nov 14:42
· 11 commits to main since this release

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 the getUrlByRouteName logic
  • Update and split tests
  • Remove old core getUrlByRouteName() & getFullPathByPath()
  • Remove core compileUrl(), use path-to-regexp compile instead