Scheduler Event Calendar Lazy Loading

Load calendar events from a remote source for the currently visible range.

  • Server-backed schedules that are too large to preload entirely
  • Refetching when the user changes week or toggles filters
  • Enable SchedulerFeatures::LAZY_LOADING in features.
  • Pass data_source: SchedulerDataSourceMode::Remote(...) implementing SchedulerDataSource.
  • Bind events: RwSignal<Vec<PlannedEvent>> — fetched rows merge into this signal.
  • Increment lazy_reload_key to trigger a refetch after external changes.
Mock remote fetch

Simulated delay with optional error toggle for the visible week range.

DensityDefault
Remote fetch with ~800ms mock delay for the visible week range.
2024-12-29
2024-12-30
2024-12-31
2025-01-01
2025-01-02
2025-01-03
2025-01-04
12 AM
1 AM
2 AM
3 AM
4 AM
5 AM
6 AM
7 AM
8 AM
9 AM
10 AM
11 AM
12 PM
1 PM
2 PM
3 PM
4 PM
5 PM
6 PM
7 PM
8 PM
9 PM
10 PM
11 PM