Knowing the current page of `useInfiniteQuery`
We're implementing a text search interface that lists up to 10 results from a starting
timestamp
and query
, so we can bi-directionally search. Is there a good way of knowing what our current page
is? I've skimmed the docs and probably missed something but the only thing that comes to mind is a local state variable.1 Reply
ambitious-aquaOP•2y ago
The UI is essentially a grid with a
<
(Find Previous) and >
(Find Next) buttons that limits the current view to 10 results at a time