Updating Events/Invalids every minute

Hello everyone,
I need to update events and invalid ranges every minute. So far, I have come up with a solution that involves a timer running every minute to perform the desired updates. However, I’m having trouble with updating the invalid ranges. It always scrolls back to the top, and I can’t find a way to retain the user’s scroll position.

Here’s some context: We use the event calendar for a time tracking system, and employees can add events for up to five hours into the future. The core problem is that if a user keeps the page open, the set constraint doesn’t update. Eventually, the user is forced to reload the page.

Has anyone implemented a similar feature who might be able to help me?

Hi @Neklas,

Could you share a code example showing how you’re currently updating the events and the invalid ranges?