I have a question about using multiple mutation in a component.
For example, if I need to create and update the same component, how can I make them?
When I make like
const [createUser, {data}] = useMtation(CREATE_USER, {user}) - create user
const [updateUser, {data}] = useMtation(UPDATE_USER, {user}) - update user
Using those, I want to do like this -
If I click create, the first one is gonna work,
When I click the edit button, the button will show the update user and will work the second one.
Then, I have an error because I have two data.
Can I have some good examples for my question?