chungweileong
Keep suspense on SSR
I'm currently trying to perform a trpc query in Nextjs with React suspense, however, I only want the the query to be run on client-side only. Here are the options that I already tried:
- Throw error while in SSR with a custom link. It works, but I will get a bunch of errors in my Sentry ☹️
- Throw promise in my component while in SSR.
Throwing promise works really good in my case, but I'm wondering if I can throw it in TRPC link instead?
3 replies