I've initialized STM like this, and undo/redo seems to work fine. But one strange thing: after events are loaded the first time, I get the option to undo, which removes all events. I definitely don't want to undo the initial load...
Yes, the above is Angular example. We do not have it for Scheduler, only for Gantt, but you can always download trial version which contains the complete sources of the example code. Also, the approach would be same because https://bryntum.com/docs/gantt/#Core/data/stm/StateTrackingManager is a core class that is used both in Scheduler and Gantt.
Couldn't compile Gantt sample, something with node-sass. I see that the difference in your config is that you don't set
stm: { disabled: false }
I've tried to comment it at my config, and stm stopped working. I also check it at runtime, and it's indeed disabled. How is it supposed to enable itself?
I should note that Scheduler/model/ProjectModel cannot load data using transport layer. This feature starts from SchedulerPro/model/ProjectModel. And pro project should handle initial commit.
Which project do you actually use? Do you also use crud manager? Are there any more places in your code which load/populate the project with data?
however, it uses CrudManager that takes care of the initial population of stores. If you use another method then you need to enable STM after you initially populate the stores. So you just enable it after you shall populate the stores in your code.