Skip to content

Commit 9c14ccf

Browse files
committed
[observable] Add publishReplay operator (#121)
1 parent d6ea940 commit 9c14ccf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/@sanity/observable/src/SanityObservable.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const {withLatestFrom} = require('rxjs/operator/withLatestFrom')
1515
const {merge} = require('rxjs/operator/merge')
1616
const {share} = require('rxjs/operator/share')
1717
const {mergeMap} = require('rxjs/operator/mergeMap')
18+
const {publishReplay} = require('rxjs/operator/publishReplay')
1819
const {_catch} = require('rxjs/operator/catch')
1920
const {switchMap} = require('rxjs/operator/switchMap')
2021
const {_do} = require('rxjs/operator/do')
@@ -55,6 +56,7 @@ Object.assign(SanityObservable.prototype, {
5556
switchMap: switchMap,
5657
concatMap: concatMap,
5758
share,
59+
publishReplay,
5860
debounceTime,
5961
distinctUntilChanged,
6062
withLatestFrom,

packages/@sanity/observable/test/exposed-api.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function run(t) {
5050
'switchMap',
5151
'concatMap',
5252
'share',
53+
'publishReplay',
5354
'debounceTime',
5455
'distinctUntilChanged',
5556
'withLatestFrom',

0 commit comments

Comments
 (0)