From bec5a45ad9f1b11b16d1277fb4c8ebc564e03dc9 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 13 Jul 2024 00:03:02 -0600 Subject: [PATCH] refactor: comment --- t3/src/app/_components/post.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (
Your most recent post: {latestPost.name}
) : (You have no posts yet.
- )} + )} */}