You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
303 B
10 lines
303 B
import { useSSRContext } from "vue"
|
|
|
|
export function useShareCache(): Map<string, any> | null {
|
|
if (typeof window === 'undefined') {
|
|
const ssrContext = useSSRContext()
|
|
return ssrContext?.cache || null
|
|
} else {
|
|
return (window as any).__SSR_CONTEXT__?.cache || null
|
|
}
|
|
}
|