mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
On a cold dashboard load the recent-achievements card briefly showed content (or its empty state) and then vanished. Two causes: - The layout-toggle gate read `DEFAULT_DASHBOARD_LAYOUT` while the real layout was still loading; achievements (and recent workouts) default to visible, so the card painted during the load window and was retracted once a layout that hid it arrived. Gate both layout-toggle-only cards on the resolved layout. - The card itself rendered its empty / content branch before its query settled, so the "no achievements yet" state flashed ahead of the real unlocks. Render a skeleton while the query is pending and commit to a content shape only once it resolves.