import { useSSRContext } from "vue" export function useShareCache(): Map | null { if (typeof window === 'undefined') { const ssrContext = useSSRContext() return ssrContext?.cache || null } else { return (window as any).__SSR_CONTEXT__?.cache || null } }