Module: hooks/useSCFetchUser
Functions
useSCFetchUser
▸ useSCFetchUser(object
): Object
info
This custom hook is used to fetch a user object.
Parameters
Name | Type |
---|---|
object | Object |
object.id? | string | number |
object.user? | SCUserType |
Returns
Object
Name | Type |
---|---|
error | string |
scUser | SCUserType |
setSCUser | Dispatch <SetStateAction <SCUserType >> |