T
TanStack3y ago
wise-white

async items (with @tanstack/query)

Hi there! Sorry if I missed this in the docs/discussions - What's the recommended approach to integrate with async data (via tanstack/react-query)? I have a use-case where the data is async and fetched using useQuery and passed into a component that uses tanstack/virtual. Since the data is async and undefined while loading, useVirtualizer gets initialized with an empty array. How can i "re-initialize" once data has come down the pipeline? This is slightly different than the infinite example since it's a useQuery and not useInfiniteQuery Thanks!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?