[VUE] Functionality of serverPrefetch? #33
Replies: 2 comments
-
@daichi-ranguru Hi! Server Prefetch should work normally as long as you save manually the state in the If you still want to use |
Beta Was this translation helpful? Give feedback.
-
Not sure if this helps, but @frandiox has made a really nice boilerplate project with examples for initialstate in main.ts: https://github.com/frandiox/vitesse-ssr-template I changed it to be quickly compatible with Vuex, until my app is more advanced, I have changed the main.ts of the project for this:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hey!
First of all - I want to say thank you for this awesome plugin!
Ive found myself in a situation where i want to use the 'serverPrefetch' on vue component and have intial data passed down to client (namely using vuex for that - as you would usually do. Call vuex query + mutation and state is on server, but no inital state is passed down to client).
Am I doing something wrong, is it this plugins missing feature or is it something different?
Thank you in advance and have a good day.
Beta Was this translation helpful? Give feedback.
All reactions