React-query + Zustand + react-router-dom #6731
-
Hello guys. I implemented mutations and queries to some extent, but I got stuck on major issue you can say. Use case: PROTECTED ROUTES How I achieved this before?
Now what I am trying?
Here is my code from different files.. It works if i presist user state in zustand but I dont want to presist user data. Someone can change role and access protected routes Things I am using.
Hope to get some help from community. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My Bad. I didn't followed the example correctly. -_- |
Beta Was this translation helpful? Give feedback.
My Bad. I didn't followed the example correctly.
Here is What I was doing Wrong. I was not passing queryClient as props.
passing queryclient
-_-