Cache i RSC
Cache Components, Suspense i czego nie wkładać do fallbacków.
Pełna treść jest utrzymywana po angielsku i może być uzupełniana sukcesywnie. Poniżej znajduje się lokalna wersja / mapa tej strony.
Cache Components
The app enables Next.js Cache Components. Avoid non-deterministic APIs (Date.now, random) during prerender/static shells.
Suspense
- Prefer streaming boundaries around slow admin panels
- Fallbacks must stay static/dumb — do not mount TanStack Table or other libraries that touch forbidden time APIs in the fallback path
- Do not import server-only modules (
getTranslationsfromnext-intl/server) into"use client"skeletons
URL state + server
Tabs and filters live in searchParams; pages resolve them inside a Suspense boundary and render only the active panel.