Skip to content

Commit b0ccb47

Browse files
authored
fix(beta): typo on renderToReadableStream assetMap (#5621)
1 parent 810cb70 commit b0ccb47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beta/src/content/reference/react-dom/server/renderToReadableStream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const assetMap = {
167167

168168
async function handler(request) {
169169
const stream = await renderToReadableStream(<App assetMap={assetMap} />, {
170-
bootstrapScripts: [assets['/main.js']]
170+
bootstrapScripts: [assetMap['/main.js']]
171171
});
172172
return new Response(stream, {
173173
headers: { 'content-type': 'text/html' },
@@ -188,7 +188,7 @@ async function handler(request) {
188188
const stream = await renderToReadableStream(<App assetMap={assetMap} />, {
189189
// Careful: It's safe to stringify() this because this data isn't user-generated.
190190
bootstrapScriptContent: `window.assetMap = ${JSON.stringify(assetMap)};`,
191-
bootstrapScripts: [assets['/main.js']],
191+
bootstrapScripts: [assetMap['/main.js']],
192192
});
193193
return new Response(stream, {
194194
headers: { 'content-type': 'text/html' },

0 commit comments

Comments
 (0)