Never fetch the same data in both layout and page
Supabase client calls are NOT automatically deduplicated like fetch(). Querying the same data in layout.tsx and page.tsx doubles database load.
Why This Matters
Unlike the native fetch() API which Next.js deduplicates, Supabase client queries run independently. Duplicate queries waste database resources and add latency.
Tags
nextjssupabasedata-fetching
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.