reagent

shaunlebron 2026-01-13T19:58:07.866979Z

what’s the best way to add non-passive event handlers? preventDefault can’t be used inside on-touch-start handlers anymore without using addEventListener(..., {passive: false}).

shaunlebron 2026-01-15T01:17:59.079629Z

I wrote a hook for it here: https://gist.github.com/shaunlebron/e3c64e5ab956bc2bff971157b37f27d8

shaunlebron 2026-01-13T19:59:20.611039Z

not sure if I should add the handlers with useEffect or with-let etc

shaunlebron 2026-01-13T20:01:35.375389Z

checking here for react solutions: https://github.com/facebook/react/issues/22794