T
TanStack17mo ago
eastern-cyan

useMutation issue with touch events

I call preventDefault() inside onTouchEnd() handler so that mouse events are not generated. This works as expected in Chrome and I can confirm it with Chrome Developer Tools. But I see that, if inside onTouchStart() I call a useMutation() it doesn't work anymore, because most of the time onTouchEnd() handler is not called anymore, and so mouse events are generated. Is there something wrong in my approach?
1 Reply
eastern-cyan
eastern-cyanOP16mo ago
Can someone give some ideas on the reason for this behavior?

Did you find this page helpful?