Is it ok to manage the Data completely outside of Table #4813
Unanswered
programm-ingovals
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a server side managed collection which uses Cursor based pagination and Filtering on a single property ( open/closed or all ).
I've had mixed success trying to force the cursor based pagination into the current pagination mechanism
using controlled paging so I tried to do it outside of the table ( meaning I don't use table.nextPage() ), I just update the data state that goes into the table.
Adding the simple filtering I thought maybe I'll just do the same. But I want to make sure I'm not breaking something obvious here.
Notice I do not bother setting manualPagination option on the table even since I'm foregoing that alltogether.
Issue with trying to use the built in mechanism is that Cursor based has no basic concept of page index but I would need to keep hold on the state of the cursors, manage which direction we are paging in.
I'm thinking I could manage that using the onPaginationChange and check the old vs the new pageIndex, but I'm always managing the PageInfo state either way.
Beta Was this translation helpful? Give feedback.
All reactions