Solutionunvalidated

Lift mutation state to a shared owner (same parent) or to shared global/local state (React Context/Redux or local state in a shared parent), and update that state inside `onSuccess`/`onError`/`onSettled` (or `isPending`) callbacks; alternatively, read mutation status via the same `useMutation` instance passed/shared with the other component.

8d16e955-0b30-44a5-ba5f-c34344bfa9fd

Lift mutation state to a shared owner (same parent) or to shared global/local state (React Context/Redux or local state in a shared parent), and update that state inside onSuccess/onError/onSettled (or isPending) callbacks; alternatively, read mutation status via the same useMutation instance passed/shared with the other component.