()
| 37 | } |
| 38 | |
| 39 | function Mutate() { |
| 40 | const mutation = useMutation(() => ({ |
| 41 | mutationKey, |
| 42 | mutationFn: async (input: number) => { |
| 43 | await sleep(150) |
| 44 | return 'data' + input |
| 45 | }, |
| 46 | })) |
| 47 | |
| 48 | return ( |
| 49 | <div> |
| 50 | data: {mutation.data ?? 'null'} |
| 51 | <button onClick={() => mutation.mutate(1)}>mutate</button> |
| 52 | </div> |
| 53 | ) |
| 54 | } |
| 55 | |
| 56 | function Page() { |
| 57 | return ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…