Fixed execution of RxJS teardown logic on complete (7.2.3 regression)

This commit is contained in:
squidfunk
2021-08-11 23:44:01 +02:00
parent 281fa3ac91
commit f4b1f97dd0
22 changed files with 88 additions and 55 deletions

View File

@@ -28,6 +28,7 @@ import {
} from "rxjs"
import {
distinctUntilKeyChanged,
finalize,
map,
observeOn,
tap
@@ -139,7 +140,8 @@ export function mountHeaderTitle(
/* Create and return component */
return watchHeaderTitle(headline, options)
.pipe(
tap(internal$),
tap(state => internal$.next(state)),
finalize(() => internal$.complete()),
map(state => ({ ref: el, ...state }))
)
}