Skip to content
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

Merged
merged 8 commits into from
Dec 11, 2024
Merged

feat: add Virtualizer component #1968

merged 8 commits into from
Dec 11, 2024

Conversation

ValeraS
Copy link
Contributor

@ValeraS ValeraS commented Nov 29, 2024

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

};
}, [scrollContainerRef, onLoadMore, scrollOffset]);

const loadingRef = React.useRef(loading);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

@ValeraS ValeraS merged commit 91e8cd3 into next Dec 11, 2024
6 checks passed
@ValeraS ValeraS deleted the feat/virtualizer branch December 11, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants