useEffect not updating dependency with queryClient.getQueryData in React Query #5189
Unanswered
nanghadiios
asked this question in
General
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am putting queryClient.getQueryData in dependency of useEffect hook to observer when data updating to cache but the useEffect never trigger update. What is the problem here?
My code below:
Beta Was this translation helpful? Give feedback.
All reactions