Home

Issue: 1800

Async Data shows up in XHR after page return

[issue link]

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
}

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