You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When a component requests an RSC payload, we initialize a global array to store it.
54
+
// This array is injected into the HTML before the component's HTML markup.
55
+
// From our tests in SuspenseHydration.test.tsx, we know that client-side components
56
+
// only hydrate after their HTML is present in the page. This timing ensures that
57
+
// the RSC payload array is available before hydration begins.
58
+
// As a result, the component can access its RSC payload directly from the page
59
+
// instead of making a separate network request.
60
+
// The client-side RSCProvider actively monitors the array for new chunks, processing them as they arrive and forwarding them to the RSC payload stream, regardless of whether the array is initially empty.
0 commit comments