Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ export class PagesDevOverlayErrorBoundary extends React.PureComponent<
return { error }
}

componentDidCatch(error: Error) {
this.setState({ error })
}

// Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.
render(): React.ReactNode {
// The component has to be unmounted or else it would continue to error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export function PagesDevOverlay({ children }: PagesDevOverlayProps) {

return (
<>
<PagesDevOverlayErrorBoundary>
{children ?? null}
</PagesDevOverlayErrorBoundary>
<PagesDevOverlayErrorBoundary>{children}</PagesDevOverlayErrorBoundary>

{/* Fonts can only be loaded outside the Shadow DOM. */}
<FontStyles />
Expand Down
Loading