Is there any way to disable scroll position recovery ? #2176
Unanswered
berekashvili22
asked this question in
Q&A
Replies: 1 comment
-
Hmmm not really sure if this has something to do with SWR or with the configuration of your router. If you are using SWR for pagination maybe this can help SWR Pagination. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using useSWR hook page scrolls top automatically , i am wondering if there is any way to disable that behavior ?
I had same problem with regular fetch but solved it by adding
history.scrollRestoration = 'manual';
P.S I replaced useSWR with regular fetch and everything worked fine
Beta Was this translation helpful? Give feedback.
All reactions