What is the right way to use customScrollParent? #1104
Unanswered
singpolyma
asked this question in
Q&A
Replies: 1 comment
-
const scrollRef = useRef(null); Maybe this? Btw I'm looking for some examples on how to use customScrollPagent too if you find any ;) |
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
-
The example
react-virtuoso/examples/scroll-element-list-scroller.tsx
Line 5 in 9a93e93
ref={setSomeState}
but doing this results in an infinite re-render and react crashes. Using auseRef
instead prevents the re-render, but means that customScrollParent is undefined on first mount and Virtuoso crashes. Does anyone have a working example of using this?Beta Was this translation helpful? Give feedback.
All reactions