Skip to content

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

Merged
necolas merged 1 commit into
react:masterfrom
necolas:react-interactions/press-use-ref
Sep 23, 2019
Merged

[react-interactions] Press with useRef instead of useState#16870
necolas merged 1 commit into
react:masterfrom
necolas:react-interactions/press-use-ref

Conversation

@necolas

@necolas necolas commented Sep 23, 2019

Copy link
Copy Markdown
Contributor

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

sizebot commented Sep 23, 2019

Copy link
Copy Markdown

No significant bundle size changes to report.

Generated by 🚫 dangerJS against b390019

@necolas necolas merged commit c5e7190 into react:master Sep 23, 2019
@react react 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.

4 participants