Quetsion about devtools error #7774
Unanswered
BorisSpring
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys im wondering sicne i readed alot of docs but it s kinda confusing how can i manage on server side react query
const TagsPage = async ({ searchParams }: SearchParams) => {
const queryClient = new QueryClient();
await queryClient.prefetchQuery({
queryKey: [Number(searchParams.page || 1), searchParams?.sortBy],
queryFn: () =>
findAllTagsWithSortAndPaginate({
page: Number(searchParams.page || 1),
sortBy: searchParams?.sortBy,
}),
});
const data = queryClient.getQueryData<{
tags: TagWithCount[];
count: number;
}>([Number(searchParams.page || 1), searchParams?.sortBy]);
return (
Tags
);
};
this is my components it works fine in client but when i open devtools to see data and i click on data it just giving me some type error that label doesnt exists thanks in adanace guys
Beta Was this translation helpful? Give feedback.
All reactions