mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-02 16:50:38 +00:00
chore: change comment to v5
This commit is contained in:
parent
ed716bf654
commit
297d9140f5
@ -24,7 +24,7 @@ export function useNuxt (): Nuxt {
|
|||||||
if (!instance) {
|
if (!instance) {
|
||||||
const fallbackInstance = nuxtCtx.tryUse()
|
const fallbackInstance = nuxtCtx.tryUse()
|
||||||
if (fallbackInstance) {
|
if (fallbackInstance) {
|
||||||
logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v4.')
|
logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v5.')
|
||||||
return fallbackInstance
|
return fallbackInstance
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ export function useNuxt (): Nuxt {
|
|||||||
export function tryUseNuxt (): Nuxt | null {
|
export function tryUseNuxt (): Nuxt | null {
|
||||||
const nuxt = getNuxtCtx().tryUse()
|
const nuxt = getNuxtCtx().tryUse()
|
||||||
if (!nuxt) {
|
if (!nuxt) {
|
||||||
logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v4.')
|
logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v5.')
|
||||||
return nuxtCtx.tryUse()
|
return nuxtCtx.tryUse()
|
||||||
}
|
}
|
||||||
return nuxt
|
return nuxt
|
||||||
|
Loading…
Reference in New Issue
Block a user