()
| 35 | } |
| 36 | |
| 37 | function Mutations() { |
| 38 | const { mutate: mutate1 } = useMutation(() => ({ |
| 39 | mutationKey: ['mutation1'], |
| 40 | mutationFn: () => sleep(150).then(() => 'data'), |
| 41 | })) |
| 42 | const { mutate: mutate2 } = useMutation(() => ({ |
| 43 | mutationKey: ['mutation2'], |
| 44 | mutationFn: () => sleep(50).then(() => 'data'), |
| 45 | })) |
| 46 | |
| 47 | createEffect(() => { |
| 48 | mutate1() |
| 49 | setActTimeout(() => { |
| 50 | mutate2() |
| 51 | }, 50) |
| 52 | }) |
| 53 | |
| 54 | return null |
| 55 | } |
| 56 | |
| 57 | function Page() { |
| 58 | return ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…