Last active
December 19, 2021 12:15
-
-
Save yeonwooz/a1708a23e436c6ec1e4bf13741496a70 to your computer and use it in GitHub Desktop.
useCallback
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
const isCheckingUser = useCallback(() => { | |
if (!isAvailable) return false | |
return isTryingToCheck | |
}, [isAvailable, isTryingToCheck]) | |
const isChecked = useCallback(() => { | |
return status === 'registered' | |
}, [status]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment