Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[react-interactions] Press with useRef instead of useState #16870

Merged
merged 1 commit into from
Sep 23, 2019

Conversation

necolas
Copy link
Contributor

@necolas necolas commented Sep 23, 2019

We only need to read and modify the value for the lifetime of the hook. This fixes some internal tests that were failing when replacing PressLegacy with Press.

We only need to read and modify the value for the lifetime of the hook
@sizebot
Copy link

sizebot commented Sep 23, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS against b390019

@necolas necolas merged commit c5e7190 into facebook:master Sep 23, 2019
@facebook facebook deleted a comment from Christianomamedio Sep 24, 2019
@necolas necolas deleted the react-interactions/press-use-ref branch December 20, 2019 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants