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

fix: support unsetting getPaginationRowModel #5974

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andreasgerstmayr
Copy link

Previously, it was not possible to unset the table.options.getPaginationRowModel option, because the result of that function is cached in table._getPaginationRowModel, and therefore the !table._getPaginationRowModel check will always evaluate to false.

Use case: Based on a UI switch, we want to enable or disable the pagination of the React table.

Previously, it was not possible to unset the table.options.getPaginationRowModel option,
because the result of that function is cached in table._getPaginationRowModel, and therefore the
`!table._getPaginationRowModel` check will always evaluate to false.

Use case: Based on a UI switch, we want to enable or disable the pagination of the React table.

Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
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.

1 participant