wealth/docs/decisions/0043-network-actions-freeze...

718 B

0043 Network actions freeze offline through useOfflineFreeze

Status: Proposed · Area: architecture · Date: 2026-10-09 · Decided by: agent

Context

G-5b: offline, cached content stays readable while actions that need the network (subscribe, follow, pay, publish, renew, pricing, شبا, payout) stay visible but frozen, and a tap says why.

Decision

island useOfflineFreeze(reason) returns {frozen, frozenReason} while offline; network actions spread it on their Button (or merge with their own frozen state). Nothing typed is resubmitted on reconnect.

Alternatives

  • Let requests fail and toast: the board wants the reason before the tap.

Consequences

Every new network action uses the hook.