Ejemplo
startTransition executes its callback synchronously, returns undefined, and scopes the transition batch config exclusively to synchronous execution.
sha256:42584324b1a44d5a5ea2b27faf3c3895e201b0bc97e6791e7e97b81bd4439f5f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- node
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- node
- Lenguaje
- node
- Gestor de paquetes
- npm
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- node 22
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- node 22
- Lenguaje
- javascript
- Gestor de paquetes
- npm
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- startTransition executes its callback synchronously, returns undefined, and scopes the transition batch config exclusively to synchronous execution. HOW
- Paquetes
-
react 18.3.1
- Entorno
- node
- Creado
- 2026-08-17T06:44:11Z
Lo que suele suponerse
startTransition defers callback execution asynchronously or returns a Promise that keeps async continuations within the transition context.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- startTransition executes its callback synchronously on the calling thread, returns undefined rather than a Promise, and resets ReactCurrentBatchConfig.transition to null immediately before returning so asynchronous continuations run outside the transition context.
- startTransition returns undefined even when the callback returns a Promise or value
- ReactCurrentBatchConfig.transition is an active object during synchronous callback execution and is restored to null upon return
- asynchronous work scheduled inside startTransition executes after the transition context has already been reset to null
- synchronous errors thrown inside startTransition propagate immediately while reliably restoring the previous transition context
- nested startTransition calls maintain and restore the enclosing transition batch configuration
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9