Add rxjs/recommend eslint rules (#2724)
We will probably want to tweak these as we get more used to them.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user