From cda5a524c10f8625e037b7b0c54e0f332a5a3f8a Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Sat, 31 Dec 2022 12:21:58 -0600 Subject: [PATCH] Update README.MD --- README.MD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index 21613d6..dd46577 100644 --- a/README.MD +++ b/README.MD @@ -93,7 +93,7 @@ const Navbar = () => { --- -const queryRes = trpc.example.hello.useQuery(name()); // ✅ +const queryRes = trpc.example.hello.useQuery(name()); // ✅ const Navbar = () => { return
{queryRes.data}
; @@ -123,7 +123,7 @@ To invalidate queries, please see the following example of using `utils` which c ```ts // navbar.tsx -const queryRes = trpc.example.hello.useQuery(name()); // ✅ +const queryRes = trpc.example.hello.useQuery(name()); // ✅ this will refetch on invalidation in footer.tsx const Navbar = () => { return
{queryRes.data}
;