()
| 203 | } |
| 204 | |
| 205 | function Mutate() { |
| 206 | const { mutate, data } = useMutation({ |
| 207 | mutationKey, |
| 208 | mutationFn: (input: number) => sleep(150).then(() => 'data' + input), |
| 209 | }) |
| 210 | |
| 211 | return ( |
| 212 | <div> |
| 213 | data: {data ?? 'null'} |
| 214 | <button onClick={() => mutate(1)}>mutate</button> |
| 215 | </div> |
| 216 | ) |
| 217 | } |
| 218 | |
| 219 | function Page() { |
| 220 | return ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…