Static GitHub Issues

[1071] Fetch Data after navigation

prev: Adding .md loaders to webpack
next: Some questions about publicPath and CDN and generate

Hello, guys!

As mentioned in the docs, asyncData calls before loading the component and this is what we expect for SSR. But for better UX I want to fetch data after navigation for client-side navigation.

Is there a simple way to fetch data before component loading for server-side and after component loading for client-side? Is anyone faced with this problem?

Sorry if it's duplicate, can't find anything similar

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c933">#c933</a>)</em></sub></div>