Unverified Commit 4e40ba84 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fix case where dispatch was missing (#41553)

parent 9ac231a0
...@@ -128,7 +128,7 @@ function performFullReload(err: any, sendMessage: any) { ...@@ -128,7 +128,7 @@ function performFullReload(err: any, sendMessage: any) {
// Attempt to update code on the fly, fall back to a hard reload. // Attempt to update code on the fly, fall back to a hard reload.
function tryApplyUpdates( function tryApplyUpdates(
onHotUpdateSuccess: any, onHotUpdateSuccess: (hasUpdates: boolean) => void,
sendMessage: any, sendMessage: any,
dispatch: DispatchFn dispatch: DispatchFn
) { ) {
...@@ -174,7 +174,7 @@ function tryApplyUpdates( ...@@ -174,7 +174,7 @@ function tryApplyUpdates(
if (isUpdateAvailable()) { if (isUpdateAvailable()) {
// While we were updating, there was a new update! Do it again. // While we were updating, there was a new update! Do it again.
tryApplyUpdates( tryApplyUpdates(
hasUpdates ? onBuildOk : onHotUpdateSuccess, hasUpdates ? () => onBuildOk(dispatch) : onHotUpdateSuccess,
sendMessage, sendMessage,
dispatch dispatch
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment