Framework
Version
API Reference

BroadcastFormSubmissionState

Type Alias: BroadcastFormSubmissionState

ts
type BroadcastFormSubmissionState = 
  | {
  errors: any[];
  id: string;
  stage: "validateAllFields" | "validate";
  submissionAttempt: number;
  successful: false;
 }
  | {
  id: string;
  onError: unknown;
  stage: "inflight";
  submissionAttempt: number;
  successful: false;
 }
  | {
  id: string;
  submissionAttempt: number;
  successful: true;
};
type BroadcastFormSubmissionState = 
  | {
  errors: any[];
  id: string;
  stage: "validateAllFields" | "validate";
  submissionAttempt: number;
  successful: false;
 }
  | {
  id: string;
  onError: unknown;
  stage: "inflight";
  submissionAttempt: number;
  successful: false;
 }
  | {
  id: string;
  submissionAttempt: number;
  successful: true;
};

Defined in: packages/form-core/src/EventClient.ts:15

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.