It could be a bug with the onPopState
mode implementation. For example, onHashChange
doesn't fire the event when the page first loads, so there's this line to handle the initial load:
https://github.com/angular/route.dart/blob/master/lib/client.dart#L652
When this was implemented onPopState
did fire the event on page load, so same hack wasn't necessary, but this might have changed. Unfortunately, there's no test for this in the current test suite.
From: https://developer.mozilla.org/en-US/docs/Web/API/Window.onpopstate
Browsers tend to handle the popstate event differently on page load. Chrome and Safari always emit a popstate event on page load, but Firefox doesn't.
This requires closer investigation for how this is handled in Dart.
TO BE CONTINUED...
Update:
a fix was submitted for route_hierarchical: https://github.com/angular/route.dart/commit/9796e36fb0c6eee98e6754203ea5cfbb740b3121