Created
September 1, 2021 23:06
-
-
Save t3dotgg/96bceedd4c07af44f2ff1ba75f03511d to your computer and use it in GitHub Desktop.
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
export const useGetUserProfile = (userId: string) => { | |
return useQuery(["user-profile", userId], async () => { | |
return await fetch("/user/"+userId); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment