Kvaser CanKing GUI Extensions SDK - v7.5.1
    Preparing search index...

    Function useUndoSessionDataSlice

    • Custom hook to manage undo/redo state using session data storage.

      Type Parameters

      • T

      Parameters

      • id: number

        The unique id of the view.

      • slice: string

        The slice name for the session data.

      • OptionalinitialState: IUndoState<T>

        The initial undo state.

      Returns [IUndoObject<T>, boolean]

      [undoObject, loaded] - An undo object for managing state history and loaded flag.