Skip to content
This repository was archived by the owner on Jan 7, 2019. It is now read-only.

Comments

Prevent scroll to top after FastBoot rehydration#9

Open
felixbuenemann wants to merge 1 commit intobttf:masterfrom
felixbuenemann:fix-scroll-to-top-on-fastboot-rehydration
Open

Prevent scroll to top after FastBoot rehydration#9
felixbuenemann wants to merge 1 commit intobttf:masterfrom
felixbuenemann:fix-scroll-to-top-on-fastboot-rehydration

Conversation

@felixbuenemann
Copy link
Contributor

If the page was rendered by FastBoot and then rehydrated on the client, we should not jump to the top, because the user might have already scrolled down on the prerendered page while rehydration was busy.

This PR is based on work by @jpdombrowski in jpdombrowski@44bb233 but has been fixed to not skip _attachEvents() on first FastBoot client side transition and pass linting checks.

If the page was rendered by FastBoot and then rehydrated on the client,
we should not jump to the top, because the user might have already
scrolled down on the prerendered page while rehydration was running.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant