Quasar & Quasar CLI v0.17 aka SSR - Developer Preview
The app is getting data from firebase in the created() cycle. I can try putting it somewhere else
Also, when I make changes to the code the result is always this error. I have to kill the server and restart it
Firebase: Firebase App named ‘[DEFAULT]’ already exists (app/duplicate-app).
this app/duplciate-app didn’t occur in the previous version
mesqueeb last edited by
@rstoenescu I’d love to try out my other apps in the beta build, but wondering about the store:
With the new method of instantiating the vuex Store, it exports a function instead of the actual store. I used to import the store into several places of my app (js helper files etc.) and use it, however, how would I do this with the SSR version?
panstromek last edited by
Question 1: Yes, they differ. Only Major version should stay the same…
Question 2: I had a problem with that, too. You need to convert it to usage of Quasar plugins - store is injected in them. Once you create store, you can also name-export it, too… But I would try to avoid that, because you would need to do lot of null-checking.
mesqueeb last edited by
It’s usually these plugin files that become so long in my case, I extract parts into other JS files, import them on the top of the plugin file.
One solution is to change ALL these imports to functions, and pass the store as param. But not really beautiful imo…
Do you have any other advice for me?
I think this is what is needed for prefetching data. There is much room for improvement here. Going to have to look at Quasar source to see if it can handle this https://ssr.vuejs.org/guide/data.html#data-store
@mbrandeis it’s in the initial post… preFetch feature. https://github.com/quasarframework/quasar-framework.org/blob/dev/source/guide/app-prefetch-feature.md
Question 1 --> perfectly normal. Quasar Framework is the core, and the CLI is the toolbox, so separate versions.
Question 2 --> read this as a starting point, to understand why you need a factory function for Vuex store: https://github.com/quasarframework/quasar-framework.org/blob/dev/source/guide/ssr-writing-universal-code.md
Question 3 --> https://github.com/quasarframework/quasar-framework.org/blob/dev/source/guide/ssr-deploying.md
Final edit: The official v0.17 has been released! Thanks to all contributors and everyone who helped in testing the betas! You rock!