You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2023. It is now read-only.
require initialization and only navigate to catchAll if defined (#17)
## Summary
This PR requires consumers to explicitly call `initialize` before consuming the instance. This allows finer control over when the event listeners are added.
We also enable true cleanup by updating `reset` to remove its `onpopstate` event listener _correctly_.
Finally, only navigate to the catchall route if one is defined (prevents runaway navigation if a URL isn't found).
## Test Plan
Added unit tests here for all new behavior and verified it works by `yarn link`ing in the monolith
0 commit comments