Skip to content

Commit d5bfcb2

Browse files
Merge pull request #4775 from NativeScript/vladimirov/fix-hmr
fix: hmr is working slowly
2 parents cd6a94a + e534fe0 commit d5bfcb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/controllers/run-controller.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ export class RunController extends EventEmitter implements IRunController {
358358
}
359359

360360
let liveSyncResultInfo = await platformLiveSyncService.liveSyncWatchAction(device, watchInfo);
361+
await this.refreshApplication(projectData, liveSyncResultInfo, data, deviceDescriptor);
361362

362363
if (!liveSyncResultInfo.didRecover && isInHMRMode) {
363364
const status = await this.$hmrStatusService.getHmrStatus(device.deviceInfo.identifier, data.hmrData.hash);
@@ -369,8 +370,6 @@ export class RunController extends EventEmitter implements IRunController {
369370
await this.refreshApplication(projectData, liveSyncResultInfo, data, deviceDescriptor);
370371
}
371372
}
372-
373-
await this.refreshApplication(projectData, liveSyncResultInfo, data, deviceDescriptor);
374373
}
375374

376375
this.$logger.info(`Successfully synced application ${deviceAppData.appIdentifier} on device ${device.deviceInfo.identifier}.`);

0 commit comments

Comments
 (0)