/** 首页 SSR hydrate 首帧同构标志(仅 / 与板块首页) */ import { getScope } from '../ssr/scope'; let hydrating = false; export function beginHomeHydrate() { hydrating = true; } export function endHomeHydrate() { hydrating = false; } /** 首帧是否必须与 SSR DOM 同构(SSR 渲染期读请求作用域,客户端读模块标志) */ export function isHomeHydrating(): boolean { const scope = getScope(); if (scope) return scope.hydrating === true; return hydrating; }