Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
7fc9acf2
Unverified
Commit
7fc9acf2
authored
Mar 23, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Mar 23, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev-overlay] Remove unused fields from unhandled error action event (#77333)
parent
c663876c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
hot-reloader-client.tsx
.../components/react-dev-overlay/app/hot-reloader-client.tsx
+0
-6
shared.ts
...es/next/src/client/components/react-dev-overlay/shared.ts
+0
-1
No files found.
packages/next/src/client/components/react-dev-overlay/app/hot-reloader-client.tsx
View file @
7fc9acf2
...
@@ -38,7 +38,6 @@ import type {
...
@@ -38,7 +38,6 @@ import type {
TurbopackMsgToBrowser
,
TurbopackMsgToBrowser
,
}
from
'../../../../server/dev/hot-reloader-types'
}
from
'../../../../server/dev/hot-reloader-types'
import
{
REACT_REFRESH_FULL_RELOAD_FROM_ERROR
}
from
'../shared'
import
{
REACT_REFRESH_FULL_RELOAD_FROM_ERROR
}
from
'../shared'
import
type
{
HydrationErrorState
}
from
'../../errors/hydration-error-info'
import
type
{
DebugInfo
}
from
'../types'
import
type
{
DebugInfo
}
from
'../types'
import
{
useUntrackedPathname
}
from
'../../navigation-untracked'
import
{
useUntrackedPathname
}
from
'../../navigation-untracked'
import
{
getReactStitchedError
}
from
'../../errors/stitched-error'
import
{
getReactStitchedError
}
from
'../../errors/stitched-error'
...
@@ -511,12 +510,8 @@ export default function HotReload({
...
@@ -511,12 +510,8 @@ export default function HotReload({
const
handleOnUnhandledError
=
useCallback
(
const
handleOnUnhandledError
=
useCallback
(
(
error
:
Error
):
void
=>
{
(
error
:
Error
):
void
=>
{
const
errorDetails
=
(
error
as
any
).
details
as
|
HydrationErrorState
|
undefined
// Component stack is added to the error in use-error-handler in case there was a hydration error
// Component stack is added to the error in use-error-handler in case there was a hydration error
const
componentStackTrace
=
(
error
as
any
).
_componentStack
const
componentStackTrace
=
(
error
as
any
).
_componentStack
const
warning
=
errorDetails
?.
warning
dispatch
({
dispatch
({
type
:
ACTION_UNHANDLED_ERROR
,
type
:
ACTION_UNHANDLED_ERROR
,
...
@@ -526,7 +521,6 @@ export default function HotReload({
...
@@ -526,7 +521,6 @@ export default function HotReload({
typeof
componentStackTrace
===
'string'
typeof
componentStackTrace
===
'string'
?
parseComponentStack
(
componentStackTrace
)
?
parseComponentStack
(
componentStackTrace
)
:
undefined
,
:
undefined
,
warning
,
})
})
},
},
[
dispatch
]
[
dispatch
]
...
...
packages/next/src/client/components/react-dev-overlay/shared.ts
View file @
7fc9acf2
...
@@ -66,7 +66,6 @@ export interface UnhandledErrorAction {
...
@@ -66,7 +66,6 @@ export interface UnhandledErrorAction {
reason
:
Error
reason
:
Error
frames
:
StackFrame
[]
frames
:
StackFrame
[]
componentStackFrames
?:
ComponentStackFrame
[]
componentStackFrames
?:
ComponentStackFrame
[]
warning
?:
[
string
,
string
,
string
]
}
}
export
interface
UnhandledRejectionAction
{
export
interface
UnhandledRejectionAction
{
type
:
typeof
ACTION_UNHANDLED_REJECTION
type
:
typeof
ACTION_UNHANDLED_REJECTION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment