From 0e2d7717be0f78aa5418f1edb454f25691e42fa0 Mon Sep 17 00:00:00 2001 From: thomasgross Date: Thu, 19 Dec 2024 14:38:32 +0100 Subject: [PATCH] fix: remove await from prefetch functions in search page for improved perceived performance when loading search result page --- app/search/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/search/page.tsx b/app/search/page.tsx index db7a9e7..928ee17 100644 --- a/app/search/page.tsx +++ b/app/search/page.tsx @@ -12,8 +12,8 @@ const Page = async (props: { searchParams: Promise<{ q: string }> }) => { const { q } = searchParams const queryClient = getQueryClient() - await prefetchSearchResult(q, queryClient) - await prefetchSearchFacets(q, queryClient) + prefetchSearchResult(q, queryClient) + prefetchSearchFacets(q, queryClient) return (