CupThread React Native & Expo SDK - v0.1.0
    Preparing search index...

    Interface ResolveReopenedStateOptions<TDraft>

    Options controlling how a composer state is updated when reopened.

    interface ResolveReopenedStateOptions<TDraft> {
        hasSubmitted?: boolean;
        initialDraft?: Partial<TDraft>;
        preserveDraftOnClose?: boolean;
        previousInitialDraft?: Partial<TDraft>;
    }

    Type Parameters

    • TDraft
    Index
    hasSubmitted?: boolean

    Whether the form was successfully submitted during the previous open session. When true, the form is ALWAYS reset to clean defaults regardless of preserveDraftOnClose.

    initialDraft?: Partial<TDraft>

    Current initialDraft prop passed by the host.

    preserveDraftOnClose?: boolean

    If true, user-typed drafts are retained across close and reopen without submission. Stale error messages and in-flight flags are always cleared on reopen.

    false

    previousInitialDraft?: Partial<TDraft>

    Previous initialDraft prop held by the component.