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
+1 -1
View File
@@ -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>;