useInfiniteQuery jump to specific data
Hi! I'm using bi-directional useInfiniteQuery and maxPages to load older/newer messages. It's working great but now I want to be able to jump to a specific message that is not yet loaded. Ideally i would like to only fetch a range of messages around the target message without fetching all the messages from the beginning. For example the target message id is 100 then it should only fetch messages 99, 100, 101 instead of fetching all messages from 1->100.
Is there a way or approach to achieve this? Thanks alot!
1 Reply
correct-apricot•2y ago
Probably set initial page parameters right?