Uh oh!
There was an error while loading. Please reload this page.
Backport useDeferredValue initial values - #33
Draft
christopher-buss wants to merge 3 commits into
Draft
Conversation
Adds startTransition, useTransition, and useDeferredValue with transition lane scheduling, queue entanglement, debug inspection, and upstream-derived coverage. Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
christopher-buss
marked this pull request as draft
August 31, 2026 21:23
Backport React 19.2's initial-value contract, reserved deferred tasks, suspended-preview recovery, and committed Debug Tools inspection. Co-authored-by: Codex <noreply@openai.com>
christopher-bussforce-pushed
the
backport-react-19-deferred-initial-value
branch
from
September 1, 2026 04:51
55818df to
015ecdaCompare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport React 19.2's optional initialValue argument for useDeferredValue on top of #25.
The first render can commit the supplied preview immediately and then schedule the final value as a distinct deferred task. The port also includes the behavior needed to recover suspended previews, avoid nested deferred waterfalls, and preserve the existing one-argument React 18 contract.
React Debug Tools includes the #28508 correction: inspection logs and returns the committed deferred value so the inspected component follows the committed tree's control flow and every subsequent hook stays aligned.
Dependency and consolidation
useAPI andReactFiberThenable, including the development/production thenable-state split. This PR neither depends on nor duplicates that separate backport; Anime Rush composes both standalone ports during integration.Upstream source and test ledger
Pinned stable contract: React v19.2.0.
Behavior-bearing history includes #27500, #27509, #27512, #27888, #28508, #32821, and #34376.
Test-driven regressions
Each failing state was reproduced before its corresponding implementation and the assertions were retained.
Verification
Exact candidate:
Static checks:
Hardened single-runtime Studio CLI:
Generated with Codex.