mirror of
https://github.com/re-rxjs/react-rxjs.git
synced 2025-12-08 18:01:51 +00:00
fix(utils-split): dismiss inner observable on error
This commit is contained in:
parent
fc20321d9b
commit
94baef6ccc
@ -57,11 +57,8 @@ export function split<T, K, R>(
|
||||
: subject.asObservable()) as GroupedObservable<K, R>
|
||||
|
||||
res.key = key
|
||||
res.subscribe({
|
||||
complete() {
|
||||
groups.delete(key)
|
||||
},
|
||||
})
|
||||
const onFinish = () => groups.delete(key)
|
||||
res.subscribe(undefined, onFinish, onFinish)
|
||||
|
||||
subject.next(x)
|
||||
subscriber.next(res)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user