T
TanStack12mo ago
wise-white

Is there a way to manually trigger tanstack pending component for a page

I have a page that uses useQuery when the query is pending I want to show the page pendingComponent and when it errors I wanna show the error component I could have just used useSuspenseQuery then but it is bugging out when using it with React aria Select component the whole page just crashes when I change too fast and some other issues but I confirmed it worked well when I used useQuery
2 Replies
correct-apricot
correct-apricot12mo ago
can you please share a complete minimal example when using useSuspenseQuery?
wise-white
wise-whiteOP12mo ago
Okay I would do that

Did you find this page helpful?