You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// See https://github.com/facebook/react/blob/d50323eb845c5fde0d720cae888bf35dedd05506/packages/react-reconciler/src/ReactFiberErrorLogger.js#L78
29
-
maybeError=args[1]
30
-
}
18
+
if(process.env.NODE_ENV!=='production'){
19
+
constreplayedError=matchReplayedError(...args)
20
+
if(replayedError){
21
+
isReplayedError=true
22
+
maybeError=replayedError
31
23
}else{
32
-
maybeError=args[0]
24
+
// See https://github.com/facebook/react/blob/d50323eb845c5fde0d720cae888bf35dedd05506/packages/react-reconciler/src/ReactFiberErrorLogger.js#L78
25
+
maybeError=args[1]
33
26
}
27
+
}else{
28
+
maybeError=args[0]
29
+
}
34
30
35
-
if(!isNextRouterError(maybeError)){
36
-
if(process.env.NODE_ENV!=='production'){
37
-
// Create an origin stack that pointing to the origin location of the error
38
-
if(!isReplayedError&&isError(maybeError)){
39
-
captureStackTrace(maybeError)
40
-
}
41
-
42
-
handleClientError(
43
-
// replayed errors have their own complex format string that should be used,
44
-
// but if we pass the error directly, `handleClientError` will ignore it
45
-
maybeError,
46
-
args
47
-
)
31
+
if(!isNextRouterError(maybeError)){
32
+
if(process.env.NODE_ENV!=='production'){
33
+
// Create an origin stack that pointing to the origin location of the error
34
+
if(!isReplayedError&&isError(maybeError)){
35
+
captureStackTrace(maybeError)
48
36
}
49
37
50
-
originConsoleError.apply(window.console,args)
38
+
handleClientError(
39
+
// replayed errors have their own complex format string that should be used,
40
+
// but if we pass the error directly, `handleClientError` will ignore it
0 commit comments