T
TanStack4w ago
optimistic-gold

How do I fetch data while blocking SSR to prevent loading states? await suspense?

In other frameworks, like Nuxt, I can do something like:
const { suspense } = someQueryHere();
await suspense();
const { suspense } = someQueryHere();
await suspense();
That doesn't seem to work in the solid version, is there an equivalent? I tried using <Suspense> but I couldn't quite get things to work. Curious if that's the correct way and I'm just missing something. thanks!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?