How to put the data fetched from API in Zustand? #2604
Unanswered
Rope-a-dope
asked this question in
General
Replies: 1 comment 5 replies
-
@Rope-a-dope would you mind sharing us a minimal demo/repro on stackblitz? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have been struggling for a whole day and got all kinds of warnings/errors.
I want to convert the fetching part to React Query. Initially, we use useEffect to fetch the data. Now what should I do if I want to change that to React Query? If I use React Query directly in the compoent and then call setState function to set feedbackItems, then I got warning: "Cannot update a component while rendering a different component". And the page seems to be rendered many times with no response. Could anyone please help? Thank you!
FeedbackList.tsx is inside container.
Beta Was this translation helpful? Give feedback.
All reactions