define symbol name

This commit is contained in:
Ulf Gebhardt 2024-01-09 07:01:47 +01:00
parent 63ce6530a0
commit e46ed489ca
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -7,7 +7,7 @@ import { PageContext, VikePageContext } from '#types/PageContext'
import type { App, InjectionKey } from 'vue' import type { App, InjectionKey } from 'vue'
const key: InjectionKey<VikePageContext & PageContext> = Symbol(undefined) const key: InjectionKey<VikePageContext & PageContext> = Symbol('pageContext')
function usePageContext() { function usePageContext() {
const pageContext = inject(key) const pageContext = inject(key)