T
TanStack16mo ago
flat-fuchsia

Getting paginated (infinite) data from a reactive endpoint

I am using tanstack query to fetch data from a reactive paginated endpoint that streams an array of json objects in ndjson format. I'm not sure if I handled invalidation correctly because I am modifying all the pages (the tanstack query library seems to just update 1 page). Code is below
1 Reply
flat-fuchsia
flat-fuchsiaOP16mo ago

Did you find this page helpful?