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
[Flight] Use AsyncLocalStorage to extend the scope of the cache to micro tasks (#25542)
This extends the scope of the cache and fetch instrumentation using
AsyncLocalStorage for microtasks. This is an intermediate step. It sets
up the dispatcher only once. This is unique to RSC because it uses the
react.shared-subset module for its shared state.
Ideally we should support multiple renderers. We should also have this
take over from an outer SSR's instrumented fetch. We should also be able
to have a fallback to global state per request where AsyncLocalStorage
doesn't exist and then the whole client-side solutions. I'm still
figuring out the right wiring for that so this is a temporary hack.
Copy file name to clipboardexpand all lines: scripts/error-codes/codes.json
+2-1
Original file line number
Diff line number
Diff line change
@@ -442,5 +442,6 @@
442
442
"454": "React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.",
443
443
"455": "This CacheSignal was requested outside React which means that it is immediately aborted.",
444
444
"456": "Calling Offscreen.detach before instance handle has been set.",
445
-
"457": "acquireHeadResource encountered a resource type it did not expect: \"%s\". This is a bug in React."
445
+
"457": "acquireHeadResource encountered a resource type it did not expect: \"%s\". This is a bug in React.",
446
+
"458": "Currently React only supports one RSC renderer at a time."
0 commit comments