Skip to content

Commit 1f83cd7

Browse files
committed
fix docs search
1 parent eb6b43b commit 1f83cd7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

website/components/Search.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ export function SearchPane() {
8888
[],
8989
);
9090

91-
const { data, isLoading, error } = useQuery(['docsSearch', query], () =>
92-
fetchSearchResults(query),
93-
);
91+
const { data, isLoading, error } = useQuery({
92+
queryKey: ['docsSearch', query],
93+
queryFn: () => fetchSearchResults(query),
94+
});
9495

9596
return (
9697
<details

0 commit comments

Comments
 (0)