Overview
After SSR HTML lands, the shell injects buildHydratingBootScript() so window.__MATES_IS_HYDRATING__ is true before deferred client JS runs.
Client boot calls armHydrationGrace() (default 100 ms) to clear the flag once modules have started — so a slow download cannot expire the window early.
Stores check isHydrating(): with a snapshot they apply and skip load(); without a snapshot they only load() when not hydrating.
Simulate hydration grace
Set the window flag, arm an 80ms grace, then re-read isHydrating().