React hook used to interact with a Trixta reaction that does require a response for a given roleName. Will trigger the callBack when a reaction is received.
roleName : string
Required
Trixta role name
reactionName : string
Required
Trixta reaction name
debugMode: boolean
Optional
Defaults to false.
If set to true
, enables Trixta console debugging
hasRoleAccess : boolean
Will be true
if the roleName
has access for this user.
latestInstance :
TrixtaReactionInstance
First or most recent Trixta instance
respondToReaction : (parameters: { data, instance, responseEvent, errorEvent }) => void
Required
This function will respond to the reaction with the data for the given parameters that is received from Trixta.