Skip to content

Commit 995168e

Browse files
fix solid devlink rendering
1 parent 4eada7a commit 995168e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/solid-router/src/HeadContent.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as Solid from 'solid-js'
22
import { MetaProvider } from '@solidjs/meta'
3-
import { For, onMount } from 'solid-js'
3+
import { For, onMount, Show } from 'solid-js'
44
import { escapeHtml } from '@tanstack/router-core'
55
import { Asset } from './Asset'
66
import { useRouter } from './useRouter'
@@ -233,7 +233,9 @@ export function HeadContent() {
233233

234234
return (
235235
<MetaProvider>
236-
{process.env.NODE_ENV !== 'production' && <DevStylesLink />}
236+
<Show when={process.env.NODE_ENV !== 'production'}>
237+
<DevStylesLink />
238+
</Show>
237239
<For each={tags()}>{(tag) => <Asset {...tag} />}</For>
238240
</MetaProvider>
239241
)

0 commit comments

Comments
 (0)