Replies: 1 comment 9 replies
-
if you use a mutation, there is no caching.
then, you can show a loading indicator in the dialog while it fetches data for the first time, and you get full caching support. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when i have list page, one of lists has id.
when i click that one, i want to get info about that id;
I use useMutation and my code like this:
But, It just Read Data Not Create/Update/Delete
So, I think that i have to use useQuery,
If I needed to use useQuery, I would do it like this:
Q1. Is it correct to use useQuery while adding State like this?
Q2. Can't I use Mutation instead of adding unnecessary State?
Beta Was this translation helpful? Give feedback.
All reactions