diff --git a/examples/notes/src/components/EditButton.tsx b/examples/notes/src/components/EditButton.tsx
index 30c16e446..e4f780664 100644
--- a/examples/notes/src/components/EditButton.tsx
+++ b/examples/notes/src/components/EditButton.tsx
@@ -6,12 +6,14 @@
*
*/
import type { JSX } from "@solidjs/web";
+import { useSearchLink } from "~/lib/links";
export default function EditButton(props: { noteId?: number; children: JSX.Element }) {
+ const searchLink = useSearchLink();
const isDraft = !("noteId" in props);
return (
diff --git a/examples/notes/src/components/SidebarNoteContent.tsx b/examples/notes/src/components/SidebarNoteContent.tsx
index 174e6747c..20ba2bff6 100644
--- a/examples/notes/src/components/SidebarNoteContent.tsx
+++ b/examples/notes/src/components/SidebarNoteContent.tsx
@@ -14,6 +14,7 @@
import { useLocation } from "@solidjs/router";
import { createEffect, createSignal, Show } from "solid-js";
import type { JSX } from "@solidjs/web";
+import { useSearchLink } from "~/lib/links";
export default function SidebarNoteContent(props: {
id: number;
@@ -22,6 +23,7 @@ export default function SidebarNoteContent(props: {
expandedChildren: JSX.Element;
}) {
const location = useLocation();
+ const searchLink = useSearchLink();
const [isExpanded, setIsExpanded] = createSignal(false);
const isActive = () => location.pathname.startsWith(`/notes/${props.id}`);
let itemRef!: HTMLDivElement;
@@ -48,7 +50,7 @@ export default function SidebarNoteContent(props: {
>
{props.children}