Files
hrmnyandGitHub 7eccedc2f9 fix(turbopack): intercepting routes should have default slots (#69929)
### What?

Intercepting routes should only override the slot they are in and not
affect other parts of the tree.
This PR makes sure we replace all other slots with the default route.

Closes PACK-3219
Fixes #69299
Closes #69575
2024-09-17 15:01:14 +02:00

31 lines
594 B
TypeScript

import React from 'react'
export default function RootLayout({
children,
modal,
slot,
}: Readonly<{
children: React.ReactNode
modal: React.ReactNode
slot: React.ReactNode
}>) {
return (
<html lang="en">
<body>
<section>
<h1>Children</h1>
<div id="children-slot">{children}</div>
</section>
<section>
<h1>Modal</h1>
<div id="modal-slot">{modal}</div>
</section>
<section>
<h1>Slot</h1>
<div id="slot-slot">{slot}</div>
</section>
</body>
</html>
)
}