o.m
How do I get the updated data and display correctly?
In my frontend I have a v-for loop that loops how many cards are there
Upon first loading the page I have 2 cards but right after creating a new template I still get 2 cards even though I was able to retrieve 3 templates after the api call when i look at the network
29 replies
Hydration mismatch help.
I am trying to learn nuxt 3 so apologies if these are pretty much basic questions for you.
I am trying to get all templates and put it on a prop of the component and looping the component but I get this mismatch error. I am not sure what is the cause of this issue.
10 replies
Value in composable is empty
I have this line of code that stores the user info
The code above is being called on
/layouts/dashboard.vue
That display's the name of the user
I have this component located at /components/dashboard/CurriculumVit.vue
but on the page it displays nothing.
What is the cause of {{ useAuth().user }}
having no value when it was able to display the name of the user ?
Does useState
solve this issue?5 replies
What's causing the api call error when using composables?
I have this code
Which doesn't work well when calling register api. I cant create a new user
This is the composable code
This is my template. Notice that the commented code works but the
authRegister
does not
20 replies