RespondToReactionsComponent
React component used to respond to many Trixta reaction effect or response by dispatching the response / initialData to actionToDispatch or dispatchResponseTo props.
Please note if your reaction is a request for response, the property requestForEffect must be false
export function functionToDispatch(payload) {
return {
type: '',
payload,
}
}
import {
RespondToReactionsComponent,
} from '@trixtateam/trixta-js-core';
<RespondToReactionsComponent
roleName=""
reactions={[{name,actionToDispatch,dispatchResponseTo,requestForEffect}]}
/>
Last updated
Was this helpful?