Skip to content

Commit

Permalink
revert HotClient changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Jul 18, 2023
1 parent c444a4c commit 9b6e9ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/client/app-index.tsx
Expand Up @@ -255,7 +255,7 @@ function Root({ children }: React.PropsWithChildren<{}>): React.ReactElement {
// if an error is thrown while rendering an RSC stream, this will catch it in dev
// and show the error overlay
return (
<ReactDevOverlay state={INITIAL_OVERLAY_STATE}>
<ReactDevOverlay state={INITIAL_OVERLAY_STATE} onReactError={() => {}}>
{children}
</ReactDevOverlay>
)
Expand Down
Expand Up @@ -22,7 +22,7 @@ class ReactDevOverlay extends React.PureComponent<
{
state: OverlayState
children: React.ReactNode
onReactError?: (error: Error) => void
onReactError: (error: Error) => void
},
ReactDevOverlayState
> {
Expand All @@ -43,7 +43,7 @@ class ReactDevOverlay extends React.PureComponent<
}

componentDidCatch(componentErr: Error) {
this.props.onReactError?.(componentErr)
this.props.onReactError(componentErr)
}

render() {
Expand Down

0 comments on commit 9b6e9ab

Please sign in to comment.