Skip to content

Pager bug with data filter #177

Answered by fbeceic
mpercec asked this question in Q&A
Discussion options

You must be logged in to vote

This addition seems simple, but there are a lot of use cases to consider - filtering, sorting, deleting/adding rows, etc.

We'll see if we can elegantly cover all these use cases while maintaining functionality.

In the meantime, if you're using the useLocalPagination hook and want the pagination to switch to the first page when filtering data resort to something like this:

useEffect(() => {
    paginationHook.onPageChange(0);
}, [dataToShow]) 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fbeceic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #168 on January 10, 2024 13:48.