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
4e40ba84
Unverified
Commit
4e40ba84
authored
Oct 19, 2022
by
Tim Neutkens
Committed by
GitHub
Oct 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix case where dispatch was missing (#41553)
parent
9ac231a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hot-reloader.tsx
...next/client/components/react-dev-overlay/hot-reloader.tsx
+2
-2
No files found.
packages/next/client/components/react-dev-overlay/hot-reloader.tsx
View file @
4e40ba84
...
...
@@ -128,7 +128,7 @@ function performFullReload(err: any, sendMessage: any) {
// Attempt to update code on the fly, fall back to a hard reload.
function
tryApplyUpdates
(
onHotUpdateSuccess
:
any
,
onHotUpdateSuccess
:
(
hasUpdates
:
boolean
)
=>
void
,
sendMessage
:
any
,
dispatch
:
DispatchFn
)
{
...
...
@@ -174,7 +174,7 @@ function tryApplyUpdates(
if
(
isUpdateAvailable
())
{
// While we were updating, there was a new update! Do it again.
tryApplyUpdates
(
hasUpdates
?
onBuildOk
:
onHotUpdateSuccess
,
hasUpdates
?
()
=>
onBuildOk
(
dispatch
)
:
onHotUpdateSuccess
,
sendMessage
,
dispatch
)
...
...
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