()
| 1037 | // eslint-disable-next-line vitest/expect-expect |
| 1038 | it('should not change state if unmounted', () => { |
| 1039 | function Mutates() { |
| 1040 | const mutation = useMutation(() => ({ mutationFn: () => sleep(10) })) |
| 1041 | return <button onClick={() => mutation.mutate()}>mutate</button> |
| 1042 | } |
| 1043 | function Page() { |
| 1044 | const [mounted, setMounted] = createSignal(true) |
| 1045 | return ( |
nothing calls this directly
no test coverage detected