Repository navigation
fix(client): preserve live forms during hydration - #1
Draft
replicas-connector[bot] wants to merge 1 commit into
Draft
replicas-connector[bot] wants to merge 1 commit into
replicas-connector[bot] wants to merge 1 commit into
Conversation
Reconcile form creations and settlements received while a snapshot is in flight, including location-scoped global forms. Clear overrides when the read settles so subsequent snapshots remain authoritative. Fixes anomalyco#56726 Co-Authored-By: Bhupesh Cholake <[email protected]> Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>
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.
Issue for this PR
Fixes anomalyco#56726
Type of change
What does this PR do?
A delayed form-list response can erase a newly created form or restore one already settled. Overlay creations and settlements received during the read, including location-scoped global forms, and clear the overlay when the request settles.
Implemented and tested with AI assistance.
How did you verify your code works?
packages/client:bun test --conditions=browser test/solid-form-race.test.ts. 7 regressions pass: concurrent creation, reply/cancellation, and failed-read cleanup. Regression assertions fail against the parent implementation.bun typecheckpasses inpackages/client.bun run checkpasses from the repository root (34 packages).origin/devand this branch; no additional existing-test failures were observed. The failures involvetoMatchObjectassertions on Solid store proxies.Screenshots / recordings
Client projection logic; no visual change.
Checklist
Co-Authored-By: Bhupesh Cholake [email protected]
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>