Skip to content

Commit b213b75

Browse files
committed
do not restart hmr on ios
1 parent 0f3f603 commit b213b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/livesync/ios-device-livesync-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen
6464
const otherFiles = _.difference(localToDevicePaths, _.concat(scriptFiles, scriptRelatedFiles));
6565
const canExecuteFastSync = this.canExecuteFastSyncForPaths(otherFiles, projectData, deviceAppData.platform);
6666

67-
if (!canExecuteFastSync || (!liveSyncInfo.useLiveEdit && scriptFiles.length)) {
67+
if (!canExecuteFastSync || (!liveSyncInfo.useLiveEdit && !this.$options.hmr && scriptFiles.length)) {
6868
await this.restartApplication(deviceAppData, projectData.projectName);
6969
return;
7070
}

0 commit comments

Comments
 (0)