nandi95
hydration mismatch
I load the user in a global middleware if they are logged in:
user is logged in
In server The user isn't loaded so it loads it, then user is there during hyrdration and on client side (from the payload)
for some reason when the component is created it doesn't have this data (user id) available as seen on the video
if I log the user data in the setup (created lifecycle hook) the user data isn't there
what am I missing?
1 replies
routing shows raw file
I can navigate /app from within the app which will give me the file rendered from /pages/app/index.vue
BUT if I load load the page first time (/app) it gives me the the raw file content of the app.vue
I can also navigate to pages/app/index.vue or utils/index which would behave the same.
what am I doing wrong?
15 replies
data fetching prefixed with localhost
why all my data fetching calls prefixed with localhost?
https://stackblitz.com/edit/nuxt-starter-ec7q6b?file=app.vue
6 replies