You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next.js 16 App Router patterns. Trigger: When working in Next.js App Router (app/), Server Components vs Client Components, Server Actions, Route Handlers, proxy.ts, caching/revalidation, Cache Components, and streaming/Suspense.
Use revalidatePath for route-level invalidation after mutations.
Use revalidateTag when data fetches share a cache tag across routes.
With Cache Components enabled, put "use cache" only in pure server-side cached functions. Do not cache auth, tenant-scoped, or per-user responses unless the cache key explicitly isolates them.
exportconstmetadata={title: "My App",description: "Description",};exportasyncfunctiongenerateMetadata(){constproduct=awaitgetProduct();return{title: product.name};}