Improved flow of observables/emissions

This commit is contained in:
squidfunk
2020-03-16 14:59:59 +01:00
parent 47aa47ee4c
commit 653d535a22
16 changed files with 86 additions and 93 deletions

View File

@@ -92,7 +92,7 @@ export function mountHeader(
): OperatorFunction<HTMLElement, Header> {
return pipe(
switchMap(el => {
const header$ = watchHeader(el, { viewport$ })
const header$ = watchHeader(el)
/* Compute whether the header should switch to page header */
const type$ = useComponent("main")