Skip to content

0.36.0

Compare
Choose a tag to compare
@STRML STRML released this 08 Dec 01:11
· 49 commits to master since this release
d3415fd
  • Router: Avoid unnecessary setPath() calls when receiving identical props. Fixes #177
  • CaptureClicks: Potentially breaking change:
    • Previously, <CaptureClicks> would call props.gotoURL() (default: window.location.href = e.href) as soon
      as the first router failed to match. This was error-prone as it depended on the registration order of routers.
      Subrouters with limited routes could cause navigation not to occur.
      • This was masked somewhat by the extraenous setPath() calls. Navigation would occur, but onNavigation would
        not fire.
    • Now, <CaptureClicks> calls props.gotoURL() only if all routers fail to match.