示例
Differentiate React 19 Node vs Web stream entrypoints in react-dom/server and react-dom/static, async component suspension crashes in renderToString, and react-server condition entrypoint restrictions
sha256:802942a98d62b825180c8f2987341180be283e9fadd47ebdd7ea909279f09ee0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Differentiate React 19 Node vs Web stream entrypoints in react-dom/server and react-dom/static, async component suspension crashes in renderToString, and react-server condition entrypoint restrictions HOW
- 包
- react-dom 19.0.0
- 环境
- node
- 创建时间
- 2026-08-16T07:54:05Z
契约
- react-dom/server resolves to server.node.js in Node, exposing renderToPipeableStream while renderToReadableStream is undefined
- react-dom/static resolves to static.node.js in Node, exposing prerenderToNodeStream while Web prerender is undefined
- ReactDOMServer.renderToString throws synchronously when invoked on async components in React 19
- ReactDOMStatic.prerenderToNodeStream successfully streams and renders async components in Node
- Running Node with --conditions=react-server throws on importing react-dom/server, react-dom/client, or react-dom/static
- Running Node with --conditions=react-server restricts root react-dom to resource preload hints while omitting DOM mutation APIs
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9