MCPcopy Index your code
hub / github.com/code100x/cms / UseActionOptions

Interface UseActionOptions

src/hooks/useAction.ts:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9) => Promise<ActionState<TInput, TOutput>>;
10
11interface UseActionOptions<TOutput> {
12 onSuccess?: (data: TOutput) => void;
13 onError?: (error: string) => void;
14 onComplete?: () => void;
15}
16
17export const useAction = <TInput, TOutput>(
18 action: Action<TInput, TOutput>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected