diff --git a/src/app/blogs/[id]/page.tsx b/src/app/blogs/[id]/page.tsx index eccbb1f..ed285a3 100644 --- a/src/app/blogs/[id]/page.tsx +++ b/src/app/blogs/[id]/page.tsx @@ -12,7 +12,9 @@ interface PageProps { } const SingleBlog: NextPage = async ({ params }) => { + const { id } = await params + console.log("loading", id); return ( }> @@ -22,6 +24,7 @@ const SingleBlog: NextPage = async ({ params }) => { } async function BlogContent({ id }: { id: string }) { + console.log(id) const queryClient = new QueryClient() await queryClient.prefetchQuery(blogSingleQueryOptions(id)) await queryClient.prefetchQuery(mostVisitedBlogsQueryOptions)