Is it possible to modify the undo, redo stack

Tags: #<Tag:0x00007f8b25f864e0>

I use handsontable with react wrapper, and i have a function that change row data by setState of react . Is there any way to modify the undo and redo stack, so i can use the redo function after change data by my custom function ?

Hi @khanhktong

Can you show your implementation?

May I send you a demo - https://codesandbox.io/s/fetch-data-lo7q3
And you based on it extend to better reflect your needs and your issue.

@ piotr.nowak
thanks for your reply, and i made a demo based on your: https://codesandbox.io/s/fetch-data-z9en3

If you use state you have to keep all changes what you interest in your state.

For example, in this demo with Redux - https://codesandbox.io/s/advanced-handsontablereact-implementation-using-hotcolumn-ovrk5 - you could change a value and next use ctl + z which works as expected, i.e. undo to the previous changes.