Skip to content

What is the best practice for loading a global state variable on client-side? #25551

Answered by manniL
Nomango asked this question in Questions
Discussion options

You must be logged in to vote

In app.vue or in the layout @ onBeforeMount or onMounted. Example. The onNuxtReady hook would work too but comes in later ☺️

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@MarioC3
Comment options

@manniL
Comment options

Answer selected by Nomango
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants