useMutation param syntax

Hi guys, I forgot how to add specific params / input to my useMutation, how can I do that for example here:
const { isLoading, mutate, error, isSuccess } =
api.realEstate.updateStatus.useMutation();
const { isLoading, mutate, error, isSuccess } =
api.realEstate.updateStatus.useMutation();
2 Replies
Yosif Stalin Gaming
what do you mean exactly? https://discord.com/channels/966627436387266600/1113858157190582413 this might be helpful but idk what you are asking
thevalorised
thevalorised2y ago
api.realEstate.updateState.useMutation().mutate({ /* parameters */ })
api.realEstate.updateState.useMutation().mutate({ /* parameters */ })
You might need to get a
const stateUpdater = api.realEstate.updateState.useMutation();
const stateUpdater = api.realEstate.updateState.useMutation();
to work with hook calls in react
Want results from more Discord servers?
Add your server