How to useInfiniteQuery with Firebase #3167
Unanswered
apodacaduron
asked this question in
Q&A
Replies: 1 comment
-
I had the same issue. This is how I did it.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys at the moment I'm trying to add pagination to a table, but I'm having trouble using react-query and firebase for this. I am aware that there's another library called react-query-firebase, but I've been having more issues with that so I'm trying to use only react-query. Also, this is a typescript project.
According to the docs is recommended to pass a cursor for pagination but when using firebase to fetch data i'm not sure on how should this be done, at the moment i have something like
Edit: I was able to make it work by doing the following, it's not perfect but at least does the job
Beta Was this translation helpful? Give feedback.
All reactions