Mainak
TTCTheo's Typesafe Cult
•Created by Mainak on 9/15/2024 in #questions
useQuery vs useSuspenseQuery
I’ve gone through this, but as I said it’s kinda unclear for me!
12 replies
TTCTheo's Typesafe Cult
•Created by Mainak on 9/15/2024 in #questions
useQuery vs useSuspenseQuery
So if I prefetch on the server and use suspense query in the client, then I do need to wrap that component with suspense for it to show loaders?
12 replies
TTCTheo's Typesafe Cult
•Created by Mainak on 9/15/2024 in #questions
useQuery vs useSuspenseQuery
But isn’t suspense boundary is only created when we add loading.tsx?
12 replies
TTCTheo's Typesafe Cult
•Created by Mainak on 9/15/2024 in #questions
useQuery vs useSuspenseQuery
I understand that, but my question is specifically regarding to the default template for t3 app. We are using
useSuspenseQuery
but there is no suspense boundary around! Also we are prefetching the request with void
which wont wait for the request to succeed12 replies