T
TanStack2y ago
grumpy-cyan

Is it a bad design to use Suspense and SSR together?

Firstly, I apologize for my provocative and novice question. I tried to implement with Next.js@14.1 app router, react-query@v5, and Suspense, along with virtual infinite scroll (react-virtuoso). In fact, to take advantage of SSR, I think it’s better to write as a server component and use pagination instead of infinite scroll. However, it’s hard to give up infinite scroll because it’s so good on mobile screens. So, I tried to use next.js, Suspense, and react-query together, and I wondered if it’s a bad design to overlap Suspense and SSR.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?