TrixtaReactionComponent
React component used to pass Trixta Reaction Props to your child component or function.
Please note if your reaction is a request for response, the property requestForEffect must be false
import {
TrixtaReactionComponent,
TrixtaReactionComponentArgs
} from '@trixtateam/trixta-js-core';
<TrixtaReactionComponent
roleName=""
reactionName=""
includeResponse={false}
initialData={}
extraData={}
requestForEffect={false}
defaultComponent={<Component/>}
debugMode={false}
requestEvent=""
responseEvent=""
errorEvent=""
timeoutEvent=""
timeout={1500}
setTimeoutEventAsErrorEvent={false}
>
{({
submit,
isInProgress,
loading,
instance,
response,
data,
}: TrixtaReactionComponentArgs<
TInitialData,TFormDataType,TSuccessType,TErrorType
>) => (
{function | <component />}
)}
</TrixtaReactionComponent>