Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back and forward cause route resolvers to get called one for each reload since full refresh #72

Open
hahn-kev opened this issue Mar 1, 2018 · 0 comments

Comments

@hahn-kev
Copy link

hahn-kev commented Mar 1, 2018

I use route resolvers to load data when a route is navigated too, and when I click a link to take me to a route everything works just fine, the app can update a bunch and it's fine.

However, if I use the back/forward buttons in the browser to navigate then each route resolver will get called for however many times the app has been hot updated, instead of just once. I've tried to take a look at the stack traces and figure out what's different, but there's a lot of code to dig through and I'm not familiar enough with angular internals to figure out the exact issue.

It seems like route resolvers might be getting added each time a reload happens and that's causing them to stack up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant