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

Scroll restore before data loads in #11

Open
dominik-myszkowski opened this issue Dec 31, 2020 · 1 comment
Open

Scroll restore before data loads in #11

dominik-myszkowski opened this issue Dec 31, 2020 · 1 comment

Comments

@dominik-myszkowski
Copy link

The scroll restore happens immediately after page has been shifted to previous one, not allowing the data to load on page (and not allowing to scroll yet). It would be nice to expose some kind of method which will be used once the data has been loaded and that would trigger the scroll to correct position.
For example my shop has a list of products provided by GraphQL query. When user clicks on a product a new page loads with product details. When user swiches back to the list the products load again from graphQL and only then (graphql query onComplete) can I scroll back to correct position.

@ashokkumar88
Copy link

@dominik-myszkowski Did you find and work around?

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

No branches or pull requests

2 participants