Skip to content

How to save scroll position while navigating between pages using Link from gatsby? #26654

Answered by piducancore
SilencerWeb asked this question in Help
Discussion options

You must be logged in to vote

Adding the following in gatsby-browser.js is working for me in gatsby 3

// gatsby-browser.js
exports.shouldUpdateScroll = () => false

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by TylerBarnes
Comment options

You must be logged in to vote
0 replies
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
9 participants
Converted from issue

This discussion was converted from issue #26654 on October 16, 2020 10:33.