Skip to content

Commit b2f87bf

Browse files
author
Fatme
authored
Merge pull request #4158 from NativeScript/fatme/reset-devices-on-stop-livesync
fix: reset devices list when stopLiveSync method is called
2 parents 8248829 + bdaf3ea commit b2f87bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/livesync/playground/preview-app-livesync-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService {
7272

7373
public async stopLiveSync(): Promise<void> {
7474
this.$previewSdkService.stop();
75+
this.$previewDevicesService.updateConnectedDevices([]);
7576
}
7677

7778
private async initializePreviewForDevice(data: IPreviewAppLiveSyncData, device: Device): Promise<FilesPayload> {

0 commit comments

Comments
 (0)