-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Virtualizer component #1968
Conversation
Preview is ready. |
Visual Tests Report is ready. |
}; | ||
}, [scrollContainerRef, onLoadMore, scrollOffset]); | ||
|
||
const loadingRef = React.useRef(loading); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need two similar refs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loadingRef contains the previous value of the loading prop to detect its changes, isLoadingRef is the current loading state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe name it prevLoadingRef
or propLoadingRef
?
254e62d
to
87b755d
Compare
No description provided.