Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Converts slow client-side useEffect fetching in Next.js App Router pages into faster React Server Components data fetching.
Use this skill ↓86% 82%−5 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 19 of 22 without it.
3 of 3 safety checks passed
Not used yet
Optimize slow client-side data fetching to instant server-side rendering.
Search for these anti-patterns in the codebase:
# Find client-side fetching patterns
rg -n "useEffect.*fetch|useState.*loading|useStore\(\)" --type tsx
rg -n '"use client"' app/ --type tsx
Red flags:
"use client" + useEffect + fetch() = slow initial loaduseState(true) for isLoading = user sees spinneruseStore() or useContext for initial page data = waterfall fetchingDetermine what data the page needs on initial render:
Move sections with useInView, useState, onClick to separate Client Components:
// components/data-section.tsx
"use client";
interface DataSectionProps {
data: Item[]; // Receive data as props
}
export function DataSection({ data }: DataSectionProps) {
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.