File size: 536 Bytes
b91e262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import React from 'react'
import DefaultGlobalError from '../../../client/components/builtin/global-error'
import { AppDevOverlayErrorBoundary } from './app-dev-overlay-error-boundary'
// If an error is thrown while rendering an RSC stream, this will catch it in
// dev and show the error overlay.
export function RootLevelDevOverlayElement({
children,
}: {
children: React.ReactNode
}) {
return (
<AppDevOverlayErrorBoundary globalError={[DefaultGlobalError, null]}>
{children}
</AppDevOverlayErrorBoundary>
)
}
|