Use server components for data fetching by default
Fetch data in async server components instead of client-side useEffect + fetch patterns.
Why This Matters
Client-side fetching adds loading spinners, waterfalls, exposed API endpoints, and unnecessary JavaScript to the bundle.
Tags
nextjssupabaseserver-componentsdata-fetching
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 4+ others. Get actionable feedback before code ships.