Repository navigation
Fix: surface competing writes during deferred state updates - #338
Merged
Merged
Conversation
ivory-code
marked this pull request as ready for review
November 19, 2026 08:09
This was referenced Nov 23, 2026
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 free
to 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
Surface unchanged state updates that may run while a newly instrumented callback is pending.
Behavioral Contract
For JavaScript and TypeScript, the brief links new pending-state writes around a registered callback to existing guarded calls of the same local state-update helper. It cites the pending assignment, callback registration, unchanged calls and guards, and the helper's assignment. An existing guard that excludes pending state suppresses the finding. The review question asks whether the receivers can refer to the same runtime object.
Evidence
Replayed the full Vue Core trees at
9638524427ab50b420e58102ae79ef3bc6c5ab6fand908c6ad05e1c76ae690d2e50f3bd28278af07e22(vuejs/core#9392). The standard brief cites bothpatchSuspensecalls at lines 277 and 327, their guards at 258 and 300, and the shared assignment at 907. It retains the resolve guard at 573 andexpect(unmountSpy).toBeCalledTimes(1)in the changedTransition.spec.ts.With
QAMAP_REPOSITORY_CACHE=off, all three runs returned identical 14,756-byte output. Elapsed times on the shared CI runner were 5.420, 5.510, and 5.346 seconds. Output SHA-256 wasd43791546010b739790a55808d3f68c15773534f95bc40ce2cedc3ac1a18d885. Replay logFixes #337.
Checks
Public OSS Check
Review Notes
The Vue replay informed this change and reports static evidence. The final diff uses offline fixtures. Host model token usage and review quality are pending measurement.