Issue: 3122

404.vue behaviour

[issue link]

I’m using nuxt generate for a static site.
Inside my pages/404.vue I have a component which is rendered fine when the url is /404 or for example /foo
However it’s mounted hook not gets called when the route is not /404

It is the expected behaviour?

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