()
| 28 | } |
| 29 | |
| 30 | function Mutate() { |
| 31 | const mutation = useMutation(() => ({ |
| 32 | mutationKey, |
| 33 | mutationFn: (input: number) => sleep(150).then(() => 'data' + input), |
| 34 | })) |
| 35 | |
| 36 | return ( |
| 37 | <div> |
| 38 | <button onClick={() => mutation.mutate(1)}>mutate</button> |
| 39 | </div> |
| 40 | ) |
| 41 | } |
| 42 | |
| 43 | function Page() { |
| 44 | return ( |
nothing calls this directly
no test coverage detected