mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
Manual measurement, mood, and water writes never carried queryKeys.dailyDigest() in their invalidation bundles — only medication intake did (v1.29.1). The digest query also runs with refetchOnMount/WindowFocus off, so a write from the values list, the mood list, or the hydration quick-add sheet left the Today hero's score and rail items stale until a hard reload. Adds dailyDigest() to measurementDependentKeys and moodDependentKeys, and adds a shared refetchInactiveDailyReads() helper (mirrors the existing medication seam) that forces the dashboard snapshot and digest to refetch even while unmounted. Every measurement/mood/water write call site now runs it alongside its existing *DependentKeys bundle.