Closed MickL closed 5 months ago
This is intended, otherwise you would have to await the creation of the store and other mechanisms wouldn’t work
@posva I see, but how to use useFetch()
to preload data while SSR with a Pinia store otherwise as shown in the example above?
Any news about this?
Steps to reproduce the bug
Not sure if this is a bug or if I am overseeing something, but stores dont work with async:
Now all states are undefined available when using the store in template:
The same code works without async / await but then Nuxt doesnt wait for useFetch() to finish on SSR.