샘플
Show that two sequential setState calls with stale state are not both applied in concurrent mode
sha256:88f977ae74e5952e7ce178249ad2d13425490fd3043c1e33c2477d4095798122
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Show that two sequential setState calls with stale state are not both applied in concurrent mode HOW
- 패키지
- jsdom 26.1.0 react 18.2.0 react-dom 18.2.0
- 환경
- node
- 생성일
- 2026-08-17T03:19:12Z
흔히 이렇게 알고 있다
Two setState calls using the current state value will both increment the counter, resulting in a final state of 2
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- assert two sequential setCount(count + 1) calls in one React 18 concurrent-root update produce a final rendered state of 1
파일
- 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-17 · ed25519:d91480838ac982c9