mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-02 08:40:31 +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) {
|
||||
const fallbackInstance = nuxtCtx.tryUse()
|
||||
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
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ export function useNuxt (): Nuxt {
|
||||
export function tryUseNuxt (): Nuxt | null {
|
||||
const nuxt = getNuxtCtx().tryUse()
|
||||
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 nuxt
|
||||
|
Loading…
Reference in New Issue
Block a user