Skip to content
Discussion options

You must be logged in to vote

When pushing or replacing history, you need to save the scroll position as state. See our own implementation on the showcase page:

https://github.com/facebook/docusaurus/blob/e610a4ac002e561b8adee5558b178168a2e26742/website/src/pages/showcase/index.tsx#L48-L67

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dninomiya
Comment options

Answer selected by dninomiya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants