Skip to content

Commit

Permalink
fix: await prefetchInfiniteQuery call
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Dec 5, 2024
1 parent bb23575 commit 755af6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(dashboard)/explorer/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { guildSearchOptions } from "./options";

const ExplorerLayout = async ({ children }: PropsWithChildren) => {
const queryClient = getQueryClient();
void queryClient.prefetchInfiniteQuery(guildSearchOptions({}));
//void queryClient.prefetchQuery(associatedGuildsOption());
await queryClient.prefetchInfiniteQuery(guildSearchOptions({}));
// await queryClient.prefetchQuery(associatedGuildsOption());

return (
<HydrationBoundary state={dehydrate(queryClient)}>
Expand Down

0 comments on commit 755af6d

Please sign in to comment.