Back to prompts
Scan the repository for duplicated fetch logic, over-fetching, and missing deduplication. Refactor: - Hoist shared fetches. - Prefer loaders, hooks, or caching libraries. Output: - Summarize network calls reduced.
Related Prompts
View allTree-Shaking & Bundle Size Optimization
You are a senior frontend performance engineer. Objective: Identify and fix tree-shaking and bundle...
PerformanceBundle Size
Accidental Re-render Detection
Find props and state patterns that cause unnecessary re-renders. Detect: - Inline object/array prop...
ReactPerformance
N+1 Queries & Fan-Out Explosions
Scan for code paths where a single request can trigger linear or unbounded database queries, API cal...
PerformanceDatabase
useEffect Best Practices Refactor
You are a senior React engineer. Refactor the provided React/Next.js codebase to follow strict useEf...
ReactuseEffect