hooks/useSCFetchUser
Functions
useSCFetchUser()
useSCFetchUser(
object
):object
info
This custom hook is used to fetch a user object.
Parameters
Parameter | Type | Description |
---|---|---|
object | object | * |
object.id ? | string | number | * |
object.user ? | SCUserType |
Returns
object
Member | Type |
---|---|
error | string |
refresh | () => Promise <void > |
refreshing | boolean |
scUser | SCUserType |
setSCUser | Dispatch <SetStateAction <SCUserType >> |