Our powerful JS Calendar component


Post by orthobridge »

What we are seeing now is, in Month view, the calls to the backend are looping uncontrollably. Just seems to have entered an endless loop of some kind


Post by orthobridge »

When we set the loadOnDemand - alwaysLoadNewRange to true, and we switch to month view, the calendar makes infinite requests, it's like a loop. we've set the datePicker showEvents to false. how do we stop it from making infinite requests in month view?


Post by Animal »

What version are you on?


Post by Animal »


Post by Animal »

orthobridge wrote: Tue Aug 13, 2024 4:49 pm

No, each request sends only what's required. It's rebuilt each time.

So then if, for the week being loaded, "Chair 1 - Jo"" has no events, then you will not get the desired empty subview for "Chair 1 - Jo"".


Post by orthobridge »

that's seems to match the situation - but in our MonthView.

We've managed a workaround as follows:

if (activeItem.viewType.type == 'monthview') {
    calendar.features.loadOnDemand.alwaysLoadNewRange = false
}else {
    calendar.features.loadOnDemand.alwaysLoadNewRange = true
}

Post by orthobridge »

It's an issue elsewhere now - when we < > between dates in a resourceView it starts hitting the DB constantly. We can't release this as It's in danger of bringing our system down if this starts on even one device.

Did you suggest 6.0.4 has resolved this ?


Post by mats »

Yes it appears so, any chance you can try it out?


Post by orthobridge »

Hi Mats,
Yes, just upgraded from 6.0.3 to 6.0.4 and the issue is resolved.

Thanks


Post by marcio »

Hey,

Thanks for letting us know and glad that is all working now!

If you need any assistance don't hesitate to contact us here.

Best regards,
Márcio


Post Reply