youtube.com/samselikoff
The name updateTag was a bit strange to me at first, because as you say it's not really "updating the tag"...
The name updateTag was a bit strange to me at first, because as you say it's not really "updating the tag"...
refresh() is for rerendering the RSC tree. So any dynamic data will be refetched (but any cached data that isn't expired won't be).
refresh() is for rerendering the RSC tree. So any dynamic data will be refetched (but any cached data that isn't expired won't be).
Server-side version of refresh is new, previously folks were using revalidatePath() to accomplish something similar but now that we have it it's the right way to refresh dynamic RSCs. Basically makes your UI look as if you +R.
Server-side version of refresh is new, previously folks were using revalidatePath() to accomplish something similar but now that we have it it's the right way to refresh dynamic RSCs. Basically makes your UI look as if you +R.
Then, after a mutation in a server action, call `refresh()`:
nextjs.org/docs/app/api...
That will send over the updated UI in the same round trip.
Then, after a mutation in a server action, call `refresh()`:
nextjs.org/docs/app/api...
That will send over the updated UI in the same round trip.
How does this example work – I thought it was a fundamental part of the design of RSCs that client components can't import server components?
How does this example work – I thought it was a fundamental part of the design of RSCs that client components can't import server components?
aurorascharff.no/posts/buildi...
She actually follows exactly the pattern Seb mentioned in that github thread with Devon
aurorascharff.no/posts/buildi...
She actually follows exactly the pattern Seb mentioned in that github thread with Devon