File tree 2 files changed +0
-7
lines changed
packages/next/src/client/components/react-dev-overlay
2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ import type {
38
38
TurbopackMsgToBrowser ,
39
39
} from '../../../../server/dev/hot-reloader-types'
40
40
import { REACT_REFRESH_FULL_RELOAD_FROM_ERROR } from '../shared'
41
- import type { HydrationErrorState } from '../../errors/hydration-error-info'
42
41
import type { DebugInfo } from '../types'
43
42
import { useUntrackedPathname } from '../../navigation-untracked'
44
43
import { getReactStitchedError } from '../../errors/stitched-error'
@@ -511,12 +510,8 @@ export default function HotReload({
511
510
512
511
const handleOnUnhandledError = useCallback (
513
512
( error : Error ) : void => {
514
- const errorDetails = ( error as any ) . details as
515
- | HydrationErrorState
516
- | undefined
517
513
// Component stack is added to the error in use-error-handler in case there was a hydration error
518
514
const componentStackTrace = ( error as any ) . _componentStack
519
- const warning = errorDetails ?. warning
520
515
521
516
dispatch ( {
522
517
type : ACTION_UNHANDLED_ERROR ,
@@ -526,7 +521,6 @@ export default function HotReload({
526
521
typeof componentStackTrace === 'string'
527
522
? parseComponentStack ( componentStackTrace )
528
523
: undefined ,
529
- warning,
530
524
} )
531
525
} ,
532
526
[ dispatch ]
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ export interface UnhandledErrorAction {
66
66
reason : Error
67
67
frames : StackFrame [ ]
68
68
componentStackFrames ?: ComponentStackFrame [ ]
69
- warning ?: [ string , string , string ]
70
69
}
71
70
export interface UnhandledRejectionAction {
72
71
type : typeof ACTION_UNHANDLED_REJECTION
You can’t perform that action at this time.
0 commit comments