whatstaz
Where to fetch initial user data
That is kinda what I'm doing right now, I found my problem, I was calling my loadUserData in a default.vue layout (which loaded on the login page), after the login, it didn't trigger any more unless I refreshed.
I tried the middleware but then it was triggering twice and I could not get rid of the hydration mismatch.
10 replies