()
| 27 | } |
| 28 | |
| 29 | function Mutations() { |
| 30 | const { mutate: mutate1 } = useMutation({ |
| 31 | mutationKey: ['mutation1'], |
| 32 | mutationFn: () => sleep(50).then(() => 'data'), |
| 33 | }) |
| 34 | const { mutate: mutate2 } = useMutation({ |
| 35 | mutationKey: ['mutation2'], |
| 36 | mutationFn: () => sleep(10).then(() => 'data'), |
| 37 | }) |
| 38 | |
| 39 | return ( |
| 40 | <div> |
| 41 | <button onClick={() => mutate1()}>mutate1</button> |
| 42 | <button onClick={() => mutate2()}>mutate2</button> |
| 43 | </div> |
| 44 | ) |
| 45 | } |
| 46 | |
| 47 | function Page() { |
| 48 | return ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…