- nuxt.js v2.15.3.
I have used asyncData
in some pages and these pages accessing by nuxt-link
.
but if continuous clicking of nuxt-link
(clicking interval less 1000ms), asyncData
function is continuous called.
is there prevent this situation? Do i use fetch
instead asyncData
?
<!-- some component -->
<nuxt-link :to="`/some-page`"></nuxt-link>
// some page component
async asyncData({ $axios ) {
// Called as much as clicking.
const resp = $axios.get(....)
return { data :resp.data }
}