-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hoist check to top of effect in
useUnsavedChanges
Per PR feedback [1], simplify control flow in effect body by using an early return. [1] #9098 (comment)
- Loading branch information
1 parent
fba1d90
commit e0a8a3c
Showing
1 changed file
with
15 additions
and
12 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