TTC
Theo's Typesafe Cultinselbegabter
Loading state of a `'use server'` component
Is it possible to have a loading state for e.g. a form submission using the new
use server
directive in nextjs 13.4?
I only see using client components at this point when I'm looking at the docs. Am I missing somehting? 😂C
chungweileong•368d ago
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.
21KMembers
View on DiscordWant results from more Discord servers?
More PostsHow do you self host your projects in a vpswithout relying on any cpanel or vercel,
i have a vps and i usually move the project using git and Geniune question: php vs server componentsI love nextjs. I hear a lot of comments about nextjs just reinvented php. Can someone clarify thingsHow do you fetch an svg from s3 into an angular app?I tried several things, but each time the svg isn't displayed.What's this errorit was working till yesterday then i added stateDistrict to address model then i started to get this