Skip to content

Investigate offline support with TanStack SQLite persistence and offline transactions #10

Description

@ivasilov

What to build

Investigate the best supported path for using the Supabase collection adapter in offline-capable TanStack DB apps. This should use TanStack browser SQLite persistence and the TanStack offline transactions example as reference points.

The investigation should determine which pieces compose cleanly with this adapter today, which pieces need adapter changes, and which behaviors are constrained by Supabase Auth, RLS, PostgREST, or Realtime. The goal is not necessarily to deliver complete offline sync in one pass, but to produce examples or a clear design conclusion that users and maintainers can trust.

The completed issue should show the current best path for persisted collection data and offline mutation behavior. It should also document known limitations around queued writes, retry behavior, conflict handling, auth/session expiry, Realtime gaps, and multi-tab behavior.

Acceptance criteria

  • Evaluate TanStack browser SQLite persistence with Supabase-backed collections.
  • Evaluate TanStack offline transaction patterns with Supabase inserts, updates, and deletes.
  • Produce a working example or document exactly why one is not currently possible.
  • Document limitations around Auth, RLS, Realtime, conflicts, retries, and multi-tab behavior.
  • Recommend follow-up adapter changes if needed.

Blocked by

None - can start immediately.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions