@3dsource/angular-unreal-module 0.0.106-dev.1 → 0.0.106-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1274,11 +1274,7 @@ class UnrealEffects {
1274
1274
  this.destroyConnections$ = createEffect(() => {
1275
1275
  return this.actions$.pipe(ofType(destroyUnrealScene), tap(() => {
1276
1276
  this.commandsSender.destroy();
1277
- // Note: do NOT call videoService.setContainer(null) here.
1278
- // This effect runs asynchronously and would race with a new
1279
- // UnrealSceneComponent that already set its container via
1280
- // afterNextRender. The container's children are cleaned by
1281
- // VideoService.destroy() which is triggered via disconnect$.
1277
+ this.videoService.setContainer(null);
1282
1278
  }), map(() => destroyRemoteConnections({ reason: DisconnectReason.Destroy })));
1283
1279
  });
1284
1280
  this.destroyRemoteConnections$ = createEffect(() => {