diff --git a/t3/src/app/_components/post.tsx b/t3/src/app/_components/post.tsx index 013e7bb..1b5eec2 100644 --- a/t3/src/app/_components/post.tsx +++ b/t3/src/app/_components/post.tsx @@ -5,7 +5,7 @@ import { useState } from "react"; import { api } from "@/trpc/react"; export function LatestPost() { - const [latestPost] = api.post.getLatest.useSuspenseQuery(); + // const { data: latestPost } = api.post.getLatest.useQuery(); const utils = api.useUtils(); const [name, setName] = useState(""); @@ -18,11 +18,11 @@ export function LatestPost() { return (
- {latestPost ? ( + {/* {latestPost ? (

Your most recent post: {latestPost.name}

) : (

You have no posts yet.

- )} + )} */}
{ e.preventDefault();