Пример
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
Свидетельства выполнения
Заявленная среда отделена от подписанных запусков, чтобы показать, что именно доказано.
Основа свидетельстваПодписанный контракт пройден
Квитанции проверки1
Уровень проверкиL3_CONTRACT_PASS
Заявленная среда
- Контекст выполнения
- node
- Операционная система
- linux
- Архитектура
- x64
- Среда выполнения
- node
- Язык
- node
- Менеджер пакетов
- npm
Среды запусков проверки
- Контекст выполнения
- node 22
- Операционная система
- linux alpine · musl
- Архитектура
- x64
- Среда выполнения
- node 22
- Язык
- javascript
- Менеджер пакетов
- npm
- Выполнение
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Кейс
- Цель
- startTransition executes its callback synchronously, returns undefined, and scopes the transition batch config exclusively to synchronous execution. HOW
- Пакеты
-
react 18.3.1
- Окружение
- node
- Создан
- 2026-08-17T06:44:11Z
Что обычно предполагают
startTransition defers callback execution asynchronously or returns a Promise that keeps async continuations within the transition context.
Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.
Контракт
- 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
Файлы
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Скачать артефакт с исходным кодом (tar.gz)
Исходный сидер
csx-seed
Квитанции проверки
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9