示例
Import and execute act directly from react package following React 18.3.1 patch export fix
sha256:81af3caa0819f84dcc1188c2963ef15e68d33760c71c247f791c27882dd581f7
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Import and execute act directly from react package following React 18.3.1 patch export fix HOW
- 包
- react 18.3.1
- 环境
- node
- 创建时间
- 2026-08-16T07:54:07Z
契约
- assert react exports act as both named export and property on default/namespace import
- assert react.act aliases react.unstable_act for backward compatibility
- assert act synchronously executes callback and returns thenable that flushes microtask work
- assert act awaits async callback and resolves final return value
- assert older versions prior to 18.3.1 fail with missing export and TypeError when calling act from react
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- 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