From the source
Summary by forck
Supabase published a guide on using React Query (TanStack Query) with the Next.js App Router and Supabase Cache Helpers.
- The post covers setting up a React Query client, generating TypeScript types from a database schema, creating Supabase clients for both client and server components, and automating query key management with the Supabase Cache Helpers library.
- It also explains how to fetch data server-side and client-side using the same query definitions.





