Improved semantics when returning from switchMap

This commit is contained in:
squidfunk
2022-03-08 10:31:38 +01:00
parent eea6d1eec4
commit 1d1cf476c8
11 changed files with 18 additions and 20 deletions

View File

@@ -260,7 +260,7 @@ export function setupInstantLoading(
.pipe(
skip(1),
map(() => getComponentElement("container")),
switchMap(el => of(...getElements("script", el))),
switchMap(el => getElements("script", el)),
concatMap(el => {
const script = h("script")
if (el.src) {