Unverified Commit 1577ba21 authored by Sebastian Markbåge's avatar Sebastian Markbåge Committed by GitHub

Name "cache" streams for React DevTools (#85159)

This way the "rsc stream" chunk coming from these can be identified.
parent d2bbca98
......@@ -734,6 +734,12 @@ async function generateCacheEntryImpl(
errors
)
if (process.env.NODE_ENV === 'development') {
// Name the stream for React DevTools.
// @ts-expect-error
returnStream.name = 'use cache'
}
return {
type: 'cached',
// Return the stream as we're creating it. This means that if it ends up
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment