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

Server-side manual pagination with react-virtual #4

Closed
Yellrus opened this issue Jun 19, 2022 · 1 comment
Closed

Server-side manual pagination with react-virtual #4

Yellrus opened this issue Jun 19, 2022 · 1 comment

Comments

@Yellrus
Copy link

Yellrus commented Jun 19, 2022

How to do server-side pagination with react-virtual? Please, thx)

@KevinVandy
Copy link
Owner

Server side manual (controlled) pagination is definitely possible. The best example I can currently point to is from TanStack Table itself, but you can pass the same state props to MRT. https://tanstack.com/table/v8/docs/examples/react/pagination-controlled.

https://tanstack.com/table/v8/docs/examples/react/pagination-controlled

I'm not sure what you mean by "with react-virtual" as I usually either see pagination or virtualization used, but not both at the same time. Do you mean infinite scrolling or something like that?

Regardless, you can customize some react-virtual options with virtualizerProps.

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

No branches or pull requests

2 participants