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
[BUG] useInfiniteList pagination is broken #5832
Comments
Hello @rwtnb, Thanks for the issue. The issue seems to be valid, your solution is good, but we want to investigate more and find the best solution that is compatible with all other packages. We will debug and get back to you. 👍 |
Thanks, for the follow up. |
Pagination for the But I guess this issue is more related with the initial requests made by If we add the default pagination values (say But I think there's one more issue related with this. |
Describe the bug
At useInfiniteList is missing the default value for pageParam, setting
pageParam = preferredPagination.current ?? 1
seems to fix it.Steps To Reproduce
paginationProperties.current
is overriden bypageParam
(always undefined)Expected behavior
Pagination to work
Packages
Additional Context
I can make a PR, but I'm very new to Refine and Tanstack.
Just want to make sure this is the correct approach.
Thanks!
The text was updated successfully, but these errors were encountered: