Skip to main content

Documentation Index

Fetch the complete documentation index at: https://yorber.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The Resilience Strategy

In volatile environments, internet is a luxury. Capital Flux treats it as an intermittent resource.

1. Persistent Caching

We implement a dual-layer cache:
  • State Cache: Using WatermelonDB for high-performance relational queries while offline.
  • Rate Cache: Exchange rates are timestamped. If the network fails, the app uses the “Last Known Rate” with an “Offline” visual indicator.

2. The Mutation Queue

Any action taken offline (New Transaction, Transfer, Budget) is stored as a Mutation Job.
StepActionStatus
1Local WriteImmediate (Optimistic)
2Queue JobPending
3NetInfo DetectChecking Connection
4Push to SupabaseSuccess / Conflict Resolution

3. Conflict Resolution

We use a Timestamp-based “Last Write Wins” strategy. Since the app is primarily personal (single-user), conflict complexity is low, but data integrity is maintained through strict Supabase RLS policies.