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