Replies: 1 comment
-
I think a useEffect in the component is the better approach |
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.
-
Here is my code, I want to scrollToBottom when new msg comes in.
I'm trying to place the logic in
structuralSharing
to execute it, but scollToBottom is also excuted when I fetchNextPage.The effect I expect is to execute when loading data for the first time and when there are new changes in the first page data.
So, how should I handle this situation to achieve my expectation?
If you need me to provide more information, please let me know. I would appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions