We are planning to upgrade our production scheduler to work with Scheduler Pro. We are trying to figure out the console error - Cycle during synchronous computation & Cannot read properties of undefined (reading 'preserveSelectionOnDatasetChange').
Just trying to find some hints to understand what throws this console error & meaning of it.
I have read some comments in your code. But needs more clarity to understand it.
...... } else if (value === SynchronousCalculationStarted) {
// the fact, that we've encountered `SynchronousCalculationStarted` constant can mean 2 things:
// 1) there's a cycle during synchronous computation (we throw exception in `read` method)
// 2) some other computation is reading synchronous computation, that has already started
// in such case its safe to just unwind the stack
stack.pop();
break; ......