internal
This commit is contained in:
@@ -26,8 +26,11 @@ const SingleBlog: NextPage<PageProps> = async ({ params }) => {
|
||||
async function BlogContent({ id }: { id: string }) {
|
||||
console.log(id)
|
||||
const queryClient = new QueryClient()
|
||||
await queryClient.prefetchQuery(blogSingleQueryOptions(id))
|
||||
await queryClient.prefetchQuery(mostVisitedBlogsQueryOptions)
|
||||
|
||||
await Promise.all([
|
||||
queryClient.prefetchQuery(blogSingleQueryOptions(id)),
|
||||
queryClient.prefetchQuery(mostVisitedBlogsQueryOptions)
|
||||
])
|
||||
|
||||
return (
|
||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||
|
||||
Reference in New Issue
Block a user