Skip to content

Commit 74714e0

Browse files
fix: fouc on solid-start HeadContent (#5578)
* fix: fouc on solid-start HeadContent * ci: apply automated fixes * fix lint --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 07f56f8 commit 74714e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/solid-router/src/HeadContent.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as Solid from 'solid-js'
22
import { MetaProvider } from '@solidjs/meta'
3+
import { For } from 'solid-js'
34
import { Asset } from './Asset'
45
import { useRouter } from './useRouter'
56
import { useRouterState } from './useRouterState'
@@ -191,9 +192,7 @@ export function HeadContent() {
191192

192193
return (
193194
<MetaProvider>
194-
{tags().map((tag) => (
195-
<Asset {...tag} />
196-
))}
195+
<For each={tags()}>{(tag) => <Asset {...tag} />}</For>
197196
</MetaProvider>
198197
)
199198
}

0 commit comments

Comments
 (0)