Preventing pagination calculation on first render
I am storing pagination state for the table in query params and there is a problem with first render of the table where I render skeletons placeholders when data is first loading and this causes the pagination state to reset and it probably doing the recalucation of pagination for first render and then for new data. When i use this approach from the github discussion
If I instead just do data directly the pagination state does not restart
Is there any way to prevent onPaginationChange or any other calculation on the first render with skeletons approach ??
2 Replies
other-emeraldOP•7mo ago
Well I didnt find a way in table to accommodate for this case and instead of playing with data that is being passed to the table on inital loading I inject skeleton html markup directly instead
grumpy-cyan•7mo ago
Not sure I understand the full issue but, i had a similar problem with pagination resetting and the fix for me was
(useTable parameter)