trixta-js-core
  • Overview
  • Installation
  • Quick Start
  • Reference
    • Types
      • Action Related Types
      • Reaction Related Types
      • Other Types
    • Methods
      • Reactions
        • submitTrixtaReactionResponse
        • clearTrixtaReactionResponse
        • clearTrixtaReactionRequestStatus
      • Actions
        • submitTrixtaActionResponse
        • clearTrixtaActionResponse
        • clearTrixtaActionRequestStatus
      • updateTrixtaRole
      • updateTrixtaRoles
      • removeTrixtaRole
      • connectTrixta
      • signoutTrixta
    • Saga Methods
      • respondToTrixtaReactionEffectSaga
      • listenForTrixtaReactionResponse
    • Components
      • Reactions
        • TrixtaReactionComponent
        • RespondToReactionComponent
        • RespondToReactionsComponent
        • TrixtaReactionResponseComponent
      • Actions
        • TrixtaActionComponent
        • TrixtaActionResponseComponent
      • TrixtaAuthComponent
    • Hooks
      • Reactions
        • useTrixtaReaction
        • useRespondToReactionEffect
        • useRespondToReactionResponse
      • Actions
        • useTrixtaAction
      • useTrixtaActionReaction
      • useTrixtaSpace
      • useTrixtaRoles
      • useTrixtaAuth
      • useTrixtaAccess
      • useTrixtaRoleUnmount
    • Redux Selectors
      • Reaction Related Selectors
      • Action Related Selectors
      • Other Selectors
    • Trixta Reducer
    • Trixta Space
    • Trixta Interactions
Powered by GitBook
On this page
  • Options
  • Returns

Was this helpful?

Export as PDF
  1. Reference
  2. Hooks

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.

PrevioususeTrixtaSpaceNextuseTrixtaAuth

Last updated 2 years ago

Was this helpful?

Copyright (c) 2020 Trixta Inc