Why zagjs/pressable doesn't work in newer version, why is the documentation gone? 😢 #1487
Unanswered
thmsfchtnr
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @thmsfchtnr, The pressable machine was deprecated. We couldn't justify the complexity it brought vs the benefit it gives; it was also quite buggy across browsers, forcing us to handle the nuances in the machine. tldr: it wasn't worth the effort. I recommend using react-spectrum's usePress for this, for now. We might look into implementing React Native's logic for pressable in the future. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I've used zagjs/pressable in the past to implement a button state machine similar to React Spectrum's usePress, but I can't find it in the newer versions of ZAG.js.
Has it been deprecated or moved? If so, what's the recommended alternative now?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions