chungweileong
chungweileong
TtRPC
Created by chungweileong on 12/18/2023 in #❓-help
Keep suspense on SSR
In case you wondering, I also tried using next/dynamic to load the component without SSR, however, it doesn't work with React suspense, meaning the suspense fallback will not be shown at all.
3 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/14/2023 in #questions
Vercel loading production env variables in preview deployments
NODE_ENV is not meant for "production", "staging", "preview", it usually used to indicate the build environment, which mostly used by build tool.
4 replies
TTCTheo's Typesafe Cult
Created by inselbegabter on 5/12/2023 in #questions
Loading state of a `'use server'` component
You can’t, the whole point of RSC is to load everything on server then return the html without JavaScript to the client, however, you can use React suspense to show a loading UI before the RSC is ready. As for form submission loading UI, I don’t think you can ever achieve that in RSC, you will have to use client component instead.
2 replies