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
Internal clients rely on manually dispatching window.hashchange events in order to have other libraries that rely on listening to hashchange manually know what the route is. Unfortunately, this seems to cause duplicate routing now.
A workaround is to override HashLocationStrategy and replace:
@overridevoidonPopState(UrlChangeListener fn) {
// Instead of listening to hashChange + popState, just listen to hashChange.//// We manually invoke hashChange events which can cause duplicate routing.
_platformLocation.onPopState(fn);
}
I'd prefer not to keep it like that long-term.
Current behavior
Listens to both type of events.
Expected/desired behavior
I'd imagine listen to just one?
The text was updated successfully, but these errors were encountered:
Steps to reproduce and a minimal demo of the problem
View hash_location_strategy:
Internal clients rely on manually dispatching
window.hashchange
events in order to have other libraries that rely on listening to hashchange manually know what the route is. Unfortunately, this seems to cause duplicate routing now.A workaround is to override
HashLocationStrategy
and replace:I'd prefer not to keep it like that long-term.
Current behavior
Listens to both type of events.
Expected/desired behavior
I'd imagine listen to just one?
The text was updated successfully, but these errors were encountered: