Closed fago closed 1 year ago
Cache support for useFetch/useAsyncData is not supported internally/out-of-the-box in Nuxt at the moment, as you can see in this open issue: https://github.com/nuxt/nuxt/issues/15445.
Solutions:
@TurtlBbx what about keepalive? https://vuejs.org/guide/built-ins/keep-alive.html
@TurtlBbx this is actually fixed by having the component in the layout https://github.com/drunomics/lupus-decoupled-nuxt3-demo/commit/f54c44808a1858d5aeaf669acca2290063db1eba
moving breadcrumbs in the layout breaks things though, a new bug.
After first-page load, the menu data is available, e.g. due to state-hydration. When navigating around pages, the menu data should not be re-fetched (unless language changes later on)