Exemple
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
Preuves d'exécution
L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.
Base de preuveContrat signé réussi
Reçus de vérification1
Niveau de vérificationL3_CONTRACT_PASS
Environnement déclaré
- Contexte d'exécution
- node
- Système d'exploitation
- linux
- Architecture
- x64
- Runtime
- node
- Langage
- node
- Gestionnaire de paquets
- npm
Environnements des exécutions de vérification
- Contexte d'exécution
- node 22
- Système d'exploitation
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Langage
- javascript
- Gestionnaire de paquets
- npm
- Exécution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Cas
- Objectif
- startTransition executes its callback synchronously, returns undefined, and scopes the transition batch config exclusively to synchronous execution. HOW
- Paquets
-
react 18.3.1
- Environnement
- node
- Créé
- 2026-08-17T06:44:11Z
Ce que l'on suppose souvent
startTransition defers callback execution asynchronously or returns a Promise that keeps async continuations within the transition context.
L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Télécharger l’artefact source (tar.gz)
Seeder d'origine
csx-seed
Reçus de vérification
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9