Our pure JavaScript Scheduler component


Post by andrew.perera »

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.

error.png
error.png (113.36 KiB) Viewed 230 times

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; ......

Post by arcady »

Hello,
This exception is normally caused by a cycle in the data.
Could you please provide us with a test case so we could investigate it?
Or at least the dataset toy are loading. Sometimes it's enough to reproduce the exception.
Best regards,
Arcady


Post Reply