@resistdesign/voltra
    Preparing search index...

    Type Alias ApplicationStateValueController<ValueType>

    Used to access and update application state values.

    type ApplicationStateValueController<ValueType = ApplicationStateValue> = {
        modified: boolean;
        onChange: ApplicationStateSetter<ValueType | undefined>;
        setModified: (value: boolean) => void;
        value: ValueType | undefined;
    }

    Type Parameters

    Index

    Properties

    modified: boolean

    Whether the value is marked as modified.

    onChange: ApplicationStateSetter<ValueType | undefined>

    Update the current value with React useState semantics.

    The setter is intentionally stable so consumers can safely depend on it like a normal React state setter.

    The next value, or a function that derives it from the previous value.

    setModified: (value: boolean) => void

    Update the modified flag.

    Type Declaration

      • (value: boolean): void
      • Parameters

        • value: boolean

          The new modified flag.

        Returns void

    value: ValueType | undefined

    The current value for the identifier.