FetchRoles
Function: fetchRoles()
[object Object]
Defined in: app/components/Roles/CreateRoleOverlay/CreateRoleOverlay.handlers.tsx:19
Fetches all existing roles/aliases from the API and updates the local state.
Parameters
setLoadingRoles
(loading) => void
State setter to track the loading status of the fetch operation.
setRoles
(roles) => void
State setter to update the list of roles in the UI.
Returns
Promise<void>