Page 1 of 1

[REACT] How to exclude certain store edits from undo/redo

Posted: Thu Mar 16, 2023 7:03 pm
by dphilip

Is there a way to not include(ignore) some of the store edits from the undo/redo?
I tried https://bryntum.com/products/schedulerpro/docs/api/Core/data/stm/StateTrackingManager#function-rejectTransaction but this causes the change also to be lost.
I want the change to exist in the store but be ignored in the undo/redo.


Re: [REACT] How to exclude certain store edits from undo/redo

Posted: Thu Mar 16, 2023 7:25 pm
by marcio

Hey dphilip,

Have you tried to disable the STM for the edits that you don't want to include and then enable it after the edit is finished??

https://bryntum.com/products/schedulerpro/docs/api/Core/data/stm/StateTrackingManager#function-disable
https://bryntum.com/products/schedulerpro/docs/api/Core/data/stm/StateTrackingManager#function-enable