File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,12 @@ import { useMatch } from "@solidjs/router";
9
9
import { SUPPORTED_LOCALES } from "~/i18n/config" ;
10
10
import { LanguageSelector } from "./language-selector" ;
11
11
12
- import { Search } from "../search" ;
13
12
import { useCurrentRouteMetaData } from "~/utils/route-metadata-helper" ;
13
+ import { clientOnly } from "node_modules/@solidjs/start/dist" ;
14
+
15
+ const ClientSearch = clientOnly ( ( ) =>
16
+ import ( "../search" ) . then ( ( m ) => ( { default : m . Search } ) )
17
+ ) ;
14
18
15
19
interface Entry {
16
20
title : string ;
@@ -122,7 +126,7 @@ export function MainHeader(props: NavProps) {
122
126
</ ul >
123
127
124
128
< div class = "lg:order-2 flex basis-0 gap-4 items-center justify-end order-" >
125
- < Search />
129
+ < ClientSearch />
126
130
< A
127
131
href = { `https://github.com/solidjs${ currentRouteMetaData ( ) . project ? currentRouteMetaData ( ) . project : "/solid" } ` }
128
132
class = "group"
You can’t perform that action at this time.
0 commit comments