Skip to content

fix(stores): block persistence until hydration finishes - #652

Draft
alichherawalla wants to merge 1 commit into
codex/f1-app-launchfrom
codex/f2-app-restart
Draft

fix(stores): block persistence until hydration finishes#652
alichherawalla wants to merge 1 commit into
codex/f1-app-launchfrom
codex/f2-app-restart

Conversation

@alichherawalla

Copy link
Copy Markdown
Collaborator

Outcome

A Mobile restart cannot overwrite or remove saved state before asynchronous hydration finishes. Normal persistence starts after hydration.

Scope

  • Add one hydration-gated storage contract.
  • Wire all six persisted Zustand stores to the same contract.
  • Keep platform persistence in Mobile.

Evidence

  • Hydration persistence tests pass: 3 of 3.
  • Focused ESLint passes.
  • The iOS Simulator launched and restarted, and Hermes recorded the hydration gate on both launches.

Open gates

  • Physical-device verification remains open because the listed iPhones were offline.
  • Live visual inspection remains open.
  • The complete production gate remains open with the stacked recovery baseline.

This PR is draft until the required gates pass.

Stack

Base: codex/f1-app-launch

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant