Created
July 18, 2022 23:14
-
-
Save rayrayzayzay/9cfbc157068060ccda3500ef769a7cc7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
❌ Unclear relationships between properties | |
type UserProfileRequest = { | |
isLoading: boolean | |
data?: UserProfileData | |
errorMessage?: string | |
statusCode?: number | |
} | |
// NOTE: In reality, we would probably use a generic like Loadable<UserProfileData> | |
// but that's outside the scope of this article. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment