Skip to content

What's new in v4.1.0

Choose a tag to compare

@KiranMantha KiranMantha released this 12 Feb 13:28
· 49 commits to master since this release

The latest update comes with

  • improved router mechanism (added onNavigationEnd event)
  • ability to either choose history based routing or hash based routing mechanism. default is history based mechanism.
  • exposes matchPath utility function to to check if current route matches with supplied regex or not. this helps to highlight navigation items.
  • making getCurrentRoute as BehaviorSubject address more robust usecases like maintaining state in url. when url params got changed, getCurrentRoute will emit new queryparams data.

Breaking Changes

  • router.getCurrentRoute is changed to BehaviorSubject. so the usage changes to router.getCurrentRoute().subscribe((route) => {console.log(route)})
  • useSearchParam hook is removed infavor of router.navigateTo