Merge branch 'livekit' into toger5/tiles_based_on_rtc_member

This commit is contained in:
Hugh Nimmo-Smith
2024-11-06 14:34:50 +00:00
4 changed files with 286 additions and 31 deletions

View File

@@ -32,7 +32,11 @@ export class ObservableScope {
}
private readonly stateImpl: MonoTypeOperator = (o) =>
o.pipe(this.bind(), distinctUntilChanged(), shareReplay(1));
o.pipe(
this.bind(),
distinctUntilChanged(),
shareReplay({ bufferSize: 1, refCount: false }),
);
/**
* Transforms an Observable into a hot state Observable which replays its