vendredi 19 novembre 2021

Static Site Generation with Nuxtjs

I am new to the Nuxt development platform, having worked mostly in Vue(v2).

Having delved into the docs and experimenting locally for a bit there are a few things I still require clarity on:

  1. In static generation mode, does each page its get its own Vue app instance? That is, every pre-rendered page that is requested from the server behave as an SPA on the client.
  2. If #1 is true, does every page, and in effect, every app run isolated from all other pages and apps? No shared state?
  3. When using Vuex in SSG mode, does each page get its own Vuex store that is inflated with an initial state while rendering the page on the server? And, does this state get passed down to the client?
  4. This store is destroyed on navigating to a different page (or even refreshing the current page), to be replaced by a new one right?

Apologies if the questions are ill-formed, or lack clarity. Still very new to SSG.

Thanks




Aucun commentaire:

Enregistrer un commentaire