mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
When ISR revalidation occurs and `unstable_cache` entries are stale, Next.js returns stale cached data instead of waiting for fresh data. This differs from fetch() behavior, which performs foreground revalidation during ISR ([ref](https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/patch-fetch.ts#L936-L939)). This PR adds similar handling to ensure that when we're revalidating an ISR page, we ensure any stale `unstable_cache` entries are revalidated before returning the final response. Fixes NEXT-4693
8 lines
121 B
JavaScript
8 lines
121 B
JavaScript
export default function RootLayout({ children }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|