Advanced

Date observation

How rs-x tracks Date mutations with grouped watchers and emits precise date-part updates.

Detailed notes

  • DateObserverProxyPairFactory has priority 6 and applies to Date instances.
  • DateProxyFactory extends GuidKeyedInstanceFactory and groups by (date object + indexWatchRule), so one Date can have multiple scoped observers.
  • DateProxy wraps setter methods (setFullYear, setMonth, setTime, etc.) and compares timestamp before/after mutation.
  • When indexWatchRule is set, DateProxy emits only changed date properties that pass the watch rule.
  • DatePropertyObserverManager builds per-property observers backed by DateProxy + IndexWatchRule.
  • Dispose unregisters date proxies and unsubscribes property observers safely.