Open
Description
Hello, thanks for the awesome work! Just a question. Right now when I need to fetch query during SSR, I have to write something along those lines:
const query = trpc.procedure.useQuery();
onServerPrefetch(async () => {
await query.suspense();
})
Is there a better way? Maybe including a simple decorator for this matter (useSuspenseQuery) would make sense for this package, since it integrates nicely into nuxt?
Metadata
Metadata
Assignees
Labels
No labels