fix(utils-split): notify subscribers in the correct order

This commit is contained in:
Josep M Sobrepere Profitós 2020-08-21 02:01:55 +02:00
parent 3c2f3b6b18
commit c59be6c8fe

View File

@ -45,12 +45,12 @@ export function split<K, T, R>(
subscriber.next(res)
},
(e) => {
groups.forEach((g) => g.error(e))
subscriber.error(e)
groups.forEach((g) => g.error(e))
},
() => {
groups.forEach((g) => g.complete())
subscriber.complete()
groups.forEach((g) => g.complete())
},
)