Skip to content

API reference > @kontsedal/olas-codemod > reactMutation

reactMutation variable ​

useMutation returns mutate and run in 1.0. mutateAsync becomesrun. A mutate(...) whose promise the code waits on or passes along becomes run(...) too, since 1.0's mutate returns nothing.

Signature:

typescript
reactMutation: Transform

Released under the MIT License.