Return shape for mutation/action hooks (follow, like, repost).
const { execute, loading, error }: MutationResult<[number]> = useSomeMutation();await execute(12345); Copy
const { execute, loading, error }: MutationResult<[number]> = useSomeMutation();await execute(12345);
Tuple type of arguments passed to execute.
execute
The error from the last mutation attempt, or null.
null
Call this to perform the mutation.
true while the mutation is in flight.
true
Return shape for mutation/action hooks (follow, like, repost).
Example
See