Update README.MD

This commit is contained in:
Arjun Patel
2022-12-31 12:21:58 -06:00
committed by GitHub
parent d0d87d7c97
commit cda5a524c1
+2 -2
View File
@@ -93,7 +93,7 @@ const Navbar = () => {
---
const queryRes = trpc.example.hello.useQuery(name()); // ✅
const queryRes = trpc.example.hello.useQuery(name()); // ✅
const Navbar = () => {
return <div>{queryRes.data}</div>;
@@ -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 <div>{queryRes.data}</div>;