Roqueform
    Preparing search index...

    Interface FieldSubscriptionOptions<F>

    Options of the useFieldSubscription hook.

    interface FieldSubscriptionOptions<F extends Field> {
        isEagerlyUpdated?: boolean;
        onChange?: (value: InferValue<F>) => void;
    }

    Type Parameters

    • F extends Field

      The field that triggers re-renders.

    Hierarchy (View Summary)

    Index

    Properties

    isEagerlyUpdated?: boolean

    If set to true then the component is re-rendered whenever the field itself, its parent fields or descendant fields are updated. If set to false then the component re-rendered only if the field was directly changed (updates from parent and descendants are ignored, even if they affect the value of the field).

    false
    
    onChange?: (value: InferValue<F>) => void

    Triggered when the field value received a non-transient update.

    Type declaration

      • (value: InferValue<F>): void
      • Parameters

        • value: InferValue<F>

          The new field value.

        Returns void