SheetXL - v0.3.20
    Preparing search index...

    Function useCommands

    • Useful for capture command changes. This can be used with an

      Type Parameters

      • STATE extends unknown
      • CONTEXT extends unknown = void

      Parameters

      • commands: IGroup
      • Optionalkeys: string[]
      • Optionallistener: ICommandsListeners<STATE, CONTEXT>
      • Optionaldeps: DependencyList

        Optional dependencies to trigger a re-render

      Returns ICommand<STATE, CONTEXT>[]

      ICommandHook or without. If used with then will call the function. If not then a change will force a re-render.

      A change to the commands, keys, or listeners will not trigger a rerender. The deps argument can be used.