Problem
PR #63 (Reader Dashboard) queries donations without .limit(). If a user has 1000+ donations, this will:
- Fetch all rows into browser memory
- Render all DOM nodes
- Cause performance degradation
- Risk hitting Supabase rate limits
The total aggregation (reduce over all results) also depends on the full fetch, so adding a limit later will make the total inaccurate unless computed server-side.
Fix
Problem
PR #63 (Reader Dashboard) queries donations without
.limit(). If a user has 1000+ donations, this will:The total aggregation (
reduceover all results) also depends on the full fetch, so adding a limit later will make the total inaccurate unless computed server-side.Fix
.limit(50)(or similar) to the donation querynpm run lintandnpm run typecheckpass