hooks/useSCFetchUsers
Functions
useSCFetchUsers()
useSCFetchUsers(
props?
):object
info
This custom hook is used to fetch users.
Context can be consumed in this way:
const {users, isLoading} = useSCFetchUsers();
Parameters
Parameter | Type | Description |
---|---|---|
props? | { exclude : string ; search : string ; } | |
props.exclude? | string | - |
props.search? | string | - |
Returns
object
Name | Type |
---|---|
isLoading | boolean |
users | SCUserAutocompleteType [] |