useRespondToReactionResponse
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.
import { useRespondToReactionResponse } from '@trixtateam/trixta-js-core';
const {
hasRoleAccess,
latestInstance,
respondToReaction
} = useRespondToReactionResponse<TInitialData>({
roleName:"",
reactionName:"",
debugMode: false,
});Options
Returns
Last updated
Was this helpful?