I have trouble with Nuxt.js keep-alive prop, I am trying to cache all components except one, and load dynamic data again. But all components are cached, I can't figure out what am I doing wrong. Is this the correct way to use keep-alive in Nuxt.js?
Default layout
<template>
<div>
<Nuxt keep-alive :keep-alive-props="{exclude: ['basket']}" />
</div>
</template>
Inside basket
<template>
<div>
<h1>basket</h1>
{{items}}
</div>
</template>
<script>
export default {
async fetch() {
let resp = await this.$axios.$get('api/items')
this.items = resp.data
},
fetchOnServer:false,
}
</script>
Vue devtools
