Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Cancel navigation if subsequent navigation happens during preload #48

Closed
Rich-Harris opened this issue Dec 24, 2017 · 0 comments · Fixed by #52
Closed

Cancel navigation if subsequent navigation happens during preload #48

Rich-Harris opened this issue Dec 24, 2017 · 0 comments · Fixed by #52
Labels

Comments

@Rich-Harris
Copy link
Member

There's a possible race condition if the user navigates to /foo, and while Sapper is loading the route and preloading the data, the user navigates to /bar. Best case, we get some flickering; worst case, we end up on /foo instead of /bar.

Rich-Harris added a commit that referenced this issue Dec 25, 2017
cancel navigation if overtaken by a second navigation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant