Skip to content

fix(client): preserve live forms during hydration - #1

Draft
replicas-connector[bot] wants to merge 1 commit into
devfrom
form-hydration
Draft

replicas-connector[bot] wants to merge 1 commit into
devfrom
form-hydration

Conversation

@replicas-connector

Copy link
Copy Markdown

Issue for this PR

Fixes anomalyco#56726

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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?

  • From 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 typecheck passes in packages/client.
  • bun run check passes from the repository root (34 packages).
  • The broader Solid tests have the same 13 pre-existing assertion failures on unchanged origin/dev and this branch; no additional existing-test failures were observed. The failures involve toMatchObject assertions on Solid store proxies.
  • Runtime: Bun 1.4.2, Linux x64.

Screenshots / recordings

Client projection logic; no visual change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Created by Bhupesh Cholake ([email protected]) with Replicas

Replicas Workspace

Co-Authored-By: Bhupesh Cholake [email protected]
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

client: delayed form hydration removes a newly received form

0 participants