From fd220a19ae7ad9c788fbe51baaefdab7daddd55a Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 16 Apr 2025 11:17:48 +0330 Subject: [PATCH] log --- src/app/blogs/[id]/page.tsx | 3 +++ 1 file changed, 3 insertions(+) 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)