mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Tests that unstable_instant configs placed at different positions across a parallel route fork correctly attribute errors to the blocking segment, with the cause pointing to the config that requires instant behavior. Includes both invalid cases that produce errors and valid cases that pass cleanly. Does not yet detect incompatible configurations like false on one slot alongside an instant config on a sibling — that will be handled in a followup.
17 lines
264 B
TypeScript
17 lines
264 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
export default function Layout({
|
|
children,
|
|
slot,
|
|
}: {
|
|
children: ReactNode
|
|
slot: ReactNode
|
|
}) {
|
|
return (
|
|
<>
|
|
<div style={{ border: '1px solid blue', padding: '1em' }}>{slot}</div>
|
|
{children}
|
|
</>
|
|
)
|
|
}
|