infiniteQuery always undefined cursor
Hey there !
I'm struggling a bit to understand who the
On the server:
On react I use it like so:
What I'm trying to achieve is:
1. Fetch new logs if there is new logs to fetch every 3000 milisec
2. Stop to try if
My issue is that on server side, my "cursor" parameter always stay "undefined":
I must be missing something.
I'm struggling a bit to understand who the
useInfiniteQuery is supposed to work with React. I have a route fetching logs defnied like so:On the server:
On react I use it like so:
What I'm trying to achieve is:
1. Fetch new logs if there is new logs to fetch every 3000 milisec
2. Stop to try if
lastPage.nextCursor is undefined at some pointMy issue is that on server side, my "cursor" parameter always stay "undefined":
I must be missing something.