Home

Issue: 2521

Understanding Nuxt request lifecyle

[issue link]

Apologies if this may be the wrong place for discuss this. I am learning Nuxt and I am trying to understand the complete lifecycle of the request, from server to frontend.

These are my findings so far:

middlewareServer // nuxt will call this for every route
plugin // nuxt will call this for every route
nuxtServerInit (store) // nuxt will call this for every route
middleware from 'nuxtConfig' // nuxt will call this for every route
middleware from 'layout'
middleware from 'page'
asyncData from 'pages'
fetch from 'pages' (store)

Am I missing anything else? I guess that modules don’t count because they can interact with multiple areas of the lifecycle…

This question is available on Nuxt.js community (#c2190)