TrixtaActionResponseComponent

React component used to pass Trixta Action Response Props to your child component or function.

import {
  TrixtaActionResponseComponent,
  TrixtaActionResponseComponentArgs
} from '@trixtateam/trixta-js-core';

<TrixtaActionResponseComponent
  roleName=""
  actionName=""
  debugMode={false}
>
  {({
    instance,
    response,
  }: TrixtaActionResponseComponentArgs<
    TSuccessType,TErrorType
  >) => (
    {function | <component />}
  )}
</TrixtaActionResponseComponent>

Last updated