Pular para o conteúdo
Kitbay
Skill

next-partial-prefetching-adoption

MITAtualizado em 11 de nov. de 2026143.470Estrelas no GitHub

A skill published in the Next.js repository for switching an app to Partial Prefetching, so links reuse a shared app shell. It needs Next.js 16.3 or later with Cache Components already on and a passing build.

O que a skill ensina

A skill published in the Next.js repository for switching an app to Partial Prefetching, so links reuse a shared app shell. It needs Next.js 16.3 or later with Cache Components already on and a passing build. With the flag still off, the agent audits every link that forces a full prefetch, agrees with the user which UI must stay instant, and records a baseline with instant() tests on a production-like build. It then opts destination routes in, turns on the partialPrefetching flag, removes the temporary route exports with a codemod and, in next dev, fixes insights about URL data read outside a Suspense boundary. It finishes with production checks and a report.

O que faz

  • Audit links that force full prefetching
  • Record a baseline with instant() tests
  • Enable the partialPrefetching flag with a codemod
  • Fix URL-data insights with Suspense boundaries