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) {
// 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
)
......
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