nuxtlabs / vue-telescope-website

Discover Websites made with Vue.js
https://vuetelescope.com
46 stars 5 forks source link

chore: refactor to remove extra api calls #42

Closed atinux closed 2 years ago

atinux commented 2 years ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code

cc @bdrtsky

Avoid mixing useAsyncData and useState, also splited the composables to have fetchTechnologies and useTechnologies for instance.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vue-telescope-website ✅ Ready (Inspect) Visit Preview Aug 13, 2022 at 0:44AM (UTC)
atinux commented 2 years ago

It looks like this now:

https://user-images.githubusercontent.com/904724/184494601-c919e20d-123e-41c6-8185-5c4c3db371a7.mp4

Also, you may want to often open the console and check window.__NUXT__.data and window.__NUXT__.state to check the payload size from SSR and if there is not any duplicate values.