log
This commit is contained in:
@@ -12,7 +12,9 @@ interface PageProps {
|
||||
}
|
||||
|
||||
const SingleBlog: NextPage<PageProps> = async ({ params }) => {
|
||||
|
||||
const { id } = await params
|
||||
console.log("loading", id);
|
||||
|
||||
return (
|
||||
<Suspense fallback={<Loading />}>
|
||||
@@ -22,6 +24,7 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user