Static GitHub Issues

[1800] Async Data shows up in XHR after page return

prev: CSS mixing between two different layouts
next: Page rendering is off via the router

When returning to a page with a async data functionality the AJAX call is fired. The XHR request seems to be refired and can be seen in the XHR request.

Is this a bug or how can this be avoided?

export default { async asyncData ({ params }) { let { data } = await axios.get('http://localhost:3532/api/afspraken') return { afspraken: data }

<!--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/c1617">#c1617</a>)</em></sub></div>