docs: Update README with example for fetching React Query cache data

This commit is contained in:
yoosangwook 2025-04-25 13:44:10 +09:00
parent f83222ade5
commit 8d4f9cd4e7

View File

@ -10,3 +10,10 @@ npx prisma db push
```
generate 를 진행해야 로컬에 연결 파일들이 생성이되고 pull push 를 사용할 수 있게 됨.
# react query cache data 가져오기
```
const cache = useQueryClient()
const data = cache.getQueryData(['user', 'info']) as UserState
```