-
I have a very basic question, but so far I haven't found the answer anywhere. How can I asynchronously load a global state variable on the client side and avoid hydration errors? I've tried using middleware, plugin setup, and even the plugin hook Here's a sandbox I created for reference: sandbox link. If loaded correctly, you should see a red Could you please help me with this? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
use |
Beta Was this translation helpful? Give feedback.
-
In |
Beta Was this translation helpful? Give feedback.
In☺️
app.vue
or in the layout @onBeforeMount
oronMounted
. Example. TheonNuxtReady
hook would work too but comes in later