Closed minwork closed 1 year ago
Anybody know how to upgrade to 2.x?
I studied the docs, examples, code, but upgrading from 1.x to 2.x doesn't work. No amount of holding down the button affects anything.
1.x works great so we'll move back to that - but I'd love to upgrade just to remove it from the list of upgradable packages in npm-check-updates.
Thanks for the great project @minwork.
Hey @Slapbox what've changed between v1 and v2 is the result of const bind = useLongPress(...)
. In v1 you received object that you could spread to component like {...bind}
and in v2 you have function {...bind()}
where you can pass context as argument in order to be able to access it on callbacks
It works like a charm! Thanks so much @minwork!
Migration guide will be released along with v3 but you can already access it here
@minwork thanks for the update! What was the default value for detect
prior to v3?
'both'
, but it will be replaced with 'pointer'
when I finish implementing PointerEvents.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.