()
| 30 | } |
| 31 | |
| 32 | function Mutations() { |
| 33 | const { mutate: mutate1 } = useMutation({ |
| 34 | mutationKey: mutationKey1, |
| 35 | mutationFn: () => sleep(50).then(() => 'data'), |
| 36 | }) |
| 37 | const { mutate: mutate2 } = useMutation({ |
| 38 | mutationKey: mutationKey2, |
| 39 | mutationFn: () => sleep(10).then(() => 'data'), |
| 40 | }) |
| 41 | |
| 42 | return ( |
| 43 | <div> |
| 44 | <button onClick={() => mutate1()}>mutate1</button> |
| 45 | <button onClick={() => mutate2()}>mutate2</button> |
| 46 | </div> |
| 47 | ) |
| 48 | } |
| 49 | |
| 50 | function Page() { |
| 51 | return ( |
nothing calls this directly
no test coverage detected