UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

15 lines (14 loc) • 497 B
export { setPageContextCurrent }; export { getPageContextCurrent }; import { getGlobalObject } from '../../utils/getGlobalObject.js'; import '../assertEnvClient.js'; const globalObject = getGlobalObject('getPageContextCurrent.ts', { pageContextCurrent: null, }); function getPageContextCurrent() { const { pageContextCurrent } = globalObject; return pageContextCurrent; } function setPageContextCurrent(pageContextCurrent) { globalObject.pageContextCurrent = pageContextCurrent; }