How to skip undo

Hi,

I use setDataAtCell.
And, I don’t want to clear the cell by using ctrl+z.

Is there any way to not add undo history?

Hi @kobayashi

there is no parameter for the beforeUndo to block setDataAtCell method being called programmatically. The edit and setDataAtCell as both actionType: "change".

However, this operation should be possible to achieve by adding a helper variable that is checked when we call setDataAtCell method.

Thank you.

You are welcome @kobayashi
Happy to help