@resistdesign/voltra
    Preparing search index...

    Function useController

    • Safely access and update a value in a parent object by its key.

      Parameters

      • parentValue: any

        Parent object or array that owns the value.

      • key: string | number

        Object key or array index to access.

      • onParentValueChange: (value: any) => void

        Callback invoked with the updated parent value.

      • isArrayIndex: boolean = false

        Whether the key refers to an array index.

      Returns any[]

      Tuple of current value and change handler.