Replies: 1 comment 1 reply
-
What is the "scroll position" you are referring to? Can you share the full code, or a minimal reproduction that we can take a look? The code from your screenshot looks good. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hey guys ,
I'm facing an issue with mutate in SWR I'm using the mutate that exists inside useSWR hook and after updating the data as im showing in the picture the scroll position scrolls to down i tried many things to solve it but nothing worked!!
here when i replaced the res.data to first like so
mutate([res.data, ...filteredReviews]);
it worked but if i tried to edit something in the middle same problem returns backBeta Was this translation helpful? Give feedback.
All reactions