mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
932053278e
This implements evicting the client cache when a Server Action calls revalidatePath or revalidateTag. Similar to the old prefetching implementation, it works by clearing the entire client cache, as opposed to only the affected path or tags. There are more changes needed on the server before we can support granular cache eviction. This just gets us to parity with the status quo.
12 lines
167 B
TypeScript
12 lines
167 B
TypeScript
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|