What problem does it solve?
Prevents the UI from showing stale or divergent data after mutations by ensuring client caches, server state, and real-time updates stay in sync, across tabs and routing boundaries.
Core Features & Use Cases
- Targeted cache invalidation: invalidate only dependent queries to avoid unnecessary refetches.
- Optimistic updates with rollback: snapshot, apply optimistic changes, and rollback on error with a final reconcile.
- Server-truth-first mutations: update server data and reconcile client caches with server response.
- Explicit Next.js revalidation: call revalidatePath or revalidateTag after mutations to purge stale pages.
- Cross-tab and WebSocket resilience: broadcast and reconnect logic to ensure edits propagate across tabs and sessions.
- Inter-skill collaboration: coordinates with prisma-data-access-guard and frontend-implementation-guard to separate concerns.
Quick Start
Audit your mutation flows to ensure cache integrity by applying targeted invalidations, onMutate rollback, server-truth reconciliation, explicit Next.js revalidation, and reliable cross-tab messaging.