refactor: update

This commit is contained in:
Mauricio Siu
2024-07-13 00:00:51 -06:00
parent 7c049cf438
commit 71ab356168
2 changed files with 83 additions and 83 deletions

View File

@@ -6,7 +6,7 @@ import { api, HydrateClient } from "@/trpc/server";
export default async function Home() { export default async function Home() {
const hello = await api.post.hello({ text: "from tRPC" }); const hello = await api.post.hello({ text: "from tRPC" });
void api.post.getLatest.prefetch(); // void api.post.getLatest.prefetch();
return ( return (
<HydrateClient> <HydrateClient>