🗒️

【Nuxt.js v2】ライフサイクル

2021/03/21に公開

以下の順番で実行される

SSR時

(process.server)

nuxtServerInit
plugins
middleware
asyncData
fetch
beforeCreate
created

(process.client)

plugins
beforeCreate
created
beforeMount
mounted

CSR時

(process.client)

middleware
asyncData
fetch
beforeCreate
created
beforeMount
mounted

Discussion