Refactored instant loading and some other components

This commit is contained in:
squidfunk
2021-02-12 12:12:49 +01:00
parent 884330da3b
commit 9c9ea8a64d
33 changed files with 463 additions and 150 deletions

View File

@@ -97,7 +97,8 @@ export function watchHeader(
distinctUntilChanged((a, b) => (
a.sticky === b.sticky &&
a.height === b.height
))
)),
shareReplay(1)
)
}
@@ -134,7 +135,6 @@ export function mountHeader(
main$.subscribe(main => internal$.next(main))
return header$
.pipe(
map(state => ({ ref: el, ...state })),
shareReplay(1)
map(state => ({ ref: el, ...state }))
)
}