-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
FocalPointPicker
to function component (#39168)
* pregame cleanup * Rewrite as function component, decruftify, update tests * Keep a ref of point value to obviate effect hook * Simplify media placeholder to obviate layout effect hook * Fix reset on blur * Update bounds unconditionally from single-run layout effect * Update example code in README * Simplify state handling * Control `Grid` visibility from component root Co-authored-by: Marco Ciampini <[email protected]> * Add changelog entry Co-authored-by: Marco Ciampini <[email protected]>
- Loading branch information
Showing
10 changed files
with
191 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.