Added actor stash.

This commit is contained in:
2024-03-21 02:54:05 +01:00
parent 9b50b53df6
commit a8aab600c7
37 changed files with 1292 additions and 490 deletions

View File

@@ -1,18 +1,15 @@
// `usePageContext` allows us to access `pageContext` in any Vue component.
// See https://vike.dev/pageContext-anywhere
import { inject } from 'vue'
import { inject } from 'vue';
export { usePageContext }
export { setPageContext }
const key = Symbol(); // eslint-disable-line symbol-description
const key = Symbol()
function usePageContext() {
const pageContext = inject(key)
return pageContext
export function usePageContext() {
const pageContext = inject(key);
return pageContext;
}
function setPageContext(app, pageContext) {
app.provide(key, pageContext)
export function setPageContext(app, pageContext) {
app.provide(key, pageContext);
}