Skip to content

Commit fd1d15b

Browse files
committed
fix: mark NpmPackageSearch as client:only
With client:load the $state import from runed is not found at build time.
1 parent 82107a0 commit fd1d15b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ThemeButton from "./ThemeButton.svelte";
1111
<JsDocsIoButton />
1212

1313
<div class="flex items-center gap-4">
14-
<NpmPackageSearchButton client:load />
14+
<NpmPackageSearchButton client:only />
1515

1616
<div class="hidden md:flex md:items-center md:gap-4">
1717
<div class="bg-border h-8 w-px"></div>

src/layouts/RootLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const ogImageAlt = "Social image for jsDocs.io";
7777

7878
<slot name="modals" />
7979

80-
<NpmPackageSearch client:load />
80+
<NpmPackageSearch client:only />
8181

8282
<script src="../scripts/add-copy-buttons.ts"></script>
8383
</body>

0 commit comments

Comments
 (0)