mirror of
https://github.com/re-rxjs/react-rxjs.git
synced 2025-12-08 18:01:51 +00:00
chore(core): improve shareLatest implementation
This commit is contained in:
parent
ffa503a982
commit
22f86e08b6
@ -49,8 +49,8 @@ const shareLatest = <T>(
|
||||
subject!.complete()
|
||||
},
|
||||
)
|
||||
if (subscription.closed) subscription = null
|
||||
emitIfEmpty()
|
||||
if (subscription && subscription.closed) subscription = null
|
||||
} else {
|
||||
innerSub = subject.subscribe(subscriber)
|
||||
if (currentValue !== EMPTY_VALUE) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user