useScrollTop is very slow
See original GitHub issueHi, I’m testing @next and I noticed most of the time on scroll is spent on the useScrollTop hook, it leads to very long frames.


Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Scroll to top in nested Drawer navigation - Stack Overflow
I have a nested Drawer navigation and want to scroll to top on every screen change, I am using UseScrollToTop hook as described...
Read more >React Component to Smooth Scroll to the Top
Just import this component in your react file and stick it at the very end. And voila, it should work! Here is a...
Read more >React Native Flastlist onScroll slow : r/reactnative - Reddit
Hey guys, can someone please help me with getting a smooth animation ... toString(); const ref = useRef(null); useScrollToTop(ref); const ...
Read more >useScrollToTop - React Navigation
useScrollToTop. The expected native behavior of scrollable components is to respond to events from navigation that will scroll to top when tapping on...
Read more >5 Reasons Why Your React Native App is Slow - In Plain English
React Native application are really slow most of the times. Large sets of the list, images, assets, API responses and multiple rendering, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is the relevant code (I use react-table):
I’m quite convinced the issue resides in Virtuoso, I recently tried to swap it with react-window and the performances were way better, but of course I lost all the nice features that Virtuoso provides out of the box.