Overview of Supabase Cache Helpers
mainSupabase Cache Helpers is a collection of framework-specific utilities designed to bridge the gap between Supabase client libraries (postgrest-js, storage-js, and realtime-js) and popular frontend cache management solutions like SWR and React Query.
Key capabilities include:
- Automatic Cache Key Generation: Parses any query into a unique, definite key.
- Smart Mutations: Automatically populates the cache after
insert,update,upsert, ordeleteoperations using implicit schema knowledge. - Cache Synchronization: Auto-expands mutation queries based on existing cache data to keep the application state up-to-date.
- Advanced Querying: Built-in support for pagination and infinite scroll.
- Storage Integration: One-liner utilities for uploading, downloading, and removing Supabase Storage objects.