Skip to content
Discussion options

You must be logged in to vote

@T-Zahil and everyone else reaching this thread:

From @pinia/nuxt 0.3.0 onwards, you can access nuxt with useNuxtApp(), globally in a store.

So you just need to replace this.$nuxt.foo with useNuxtApp().foo (or assign useNuxtApp output to a variable of course).

This is due to Nuxt dropping legacy context in rc.5.

Thanks to the team for taking care of this caveat. Logs are way cleaner now without the warnings :)!

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants
Converted from issue

This discussion was converted from issue #1108 on March 02, 2022 13:54.