-
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.
[@wordpress/data]: Refactor use-select in preparation for adding types (
#37017) In this patch we're making what should be a few minor changes to `use-select` as we get ready to add types to the data package. Primarily: - Inverting a double-negative into a positive assertion - Creating an intermediate variable for the `useCallback` that might be given somethign that isn't a function. There shouldn't be any impact on the behavior of the package.
- Loading branch information
Showing
2 changed files
with
61 additions
and
46 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