()
| 46 | }) |
| 47 | |
| 48 | function Mutation() { |
| 49 | const isMutating = useIsMutating() |
| 50 | const { mutate } = useMutation(() => mutationOpts) |
| 51 | |
| 52 | createRenderEffect(() => { |
| 53 | isMutatingArray.push(isMutating()) |
| 54 | }) |
| 55 | |
| 56 | return ( |
| 57 | <div> |
| 58 | <button onClick={() => mutate()}>mutate</button> |
| 59 | </div> |
| 60 | ) |
| 61 | } |
| 62 | |
| 63 | const rendered = renderWithClient(queryClient, () => <Mutation />) |
| 64 |
nothing calls this directly
no test coverage detected