Skip to main content

Heal Store

Source: stores/useHealStore.ts (39 lines) The useHealStore controls the HealOverlay component, managing two distinct recovery states: active healing (blocking spinner) and unrecoverable crash (confirmation modal with nuclear reset).

State Shape


Actions


Default Messages

When startHealing() is called without a message argument, the default status text is:
“Cloud save successful. Healing local cache…”

Crash Mode

When triggerCrash() is called, it overrides any active healing state and forces the HealOverlay into crash mode. The crash confirmation modal has a single “OK” button that calls nuclearReset() from the Kotlin recovery-module, restarting the entire app process.

Callers