useTrixtaRoles

A react hook that will attempt to join the passed array of roles, on mount of component.

import { useTrixtaRoles } from '@trixtateam/trixta-js-core';
useTrixtaRoles({ roles });

Options

  • roles : Array<TrixtaRoleParameter>

    • Required

    • An array of roles with their name and any optional additionalData you wish to pass

Returns

The hook returns nothing.

Last updated