#Minimal RSC refresh

7 messages · Page 1 of 1 (latest)

rancid cedar
#

I'm really fascinated with the possibility of using RSC as the format for fetching updates on the client.

Using old-style api json request, I am able to update a single client component specifically at a time.

For server component updates I'm only aware of using revalidatePath with server actions to get the RSC output of basically all server components on this path or router.refresh to get the same result with GET request.

What's the current/planned pattern for fetching the smallest RSC update for a limited server component tree.

Is the currently a way to fetch the RSC data for a single page/route segment (without fetching layouts/pages above or below on the path)?

red sigilBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

quaint sparrow
rancid cedar
# quaint sparrow yes there is and it's `revalidateTag`

Interesting! Thank you for the response.

Can I take this to mean that if I revalidate a particular tag in a server action, I will only get the updated RSC for the server components that depends on data from the given tag?

Do you know of any documentation about this feature?

signal jacinth
rancid cedar
#

Thanks @signal jacinth

I've seen this documentation. I was looking after some documentation more specifically about revalidating/rendering only a limited set of server components on a given path.

quaint sparrow