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

hydrate initial page before starting router #654

Merged
merged 2 commits into from
Mar 25, 2021
Merged

hydrate initial page before starting router #654

merged 2 commits into from
Mar 25, 2021

Conversation

Rich-Harris
Copy link
Member

fixes #652, by only initing the router after the initial page has been hydrated. This is a bit finicky to write a test for, so I haven't. If anyone is feeling particularly motivated, go nuts.

Also, removes a TODO by handling the edge case in which a load function causes a redirect for the initial page, but only in the browser.

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

Successfully merging this pull request may close these issues.

Clicking on a link before JS finishes loading breaks navigation
1 participant