useRespondToReactionEffect
React hook used to interact with a Trixta reaction that does not require a response for a given roleName. Will trigger the callBack when a reaction is received.
import { useRespondToReactionEffect } from '@trixtateam/trixta-js-core';
const {
hasRoleAccess,
} = useRespondToReactionEffect<TInitialData>({
roleName:"",
reactionName:"",
callBack: (payload?: TInitialData) => {},
debugMode: false,
});Options
Returns
Last updated
Was this helpful?