next.js/packages/next/src/next-devtools/userspace/app/client-entry.tsx
client-entry.tsx18 lines536 B
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>
  )
}
Quest for Codev2.0.0
/
SIGN IN