Skip to content

No observer of history cursor index #1751

@Nourbol

Description

@Nourbol

Problem:
There is no built-in library feature that allows us to trigger a callback when the history cursor changes.

Example:
Consider a page with multiple spreadsheets, each having a custom toolbar with undo and redo operations. The requirement is that these undo and redo operations must apply across all spreadsheets. While a universal history helps achieve this, it becomes difficult to track whether the cursor is at the beginning or end of the history, which is needed to disable these operations appropriately.

Workaround:
Using setInterval to periodically check if the cursor's index has changed.

But we are not satisfied by using this workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions