You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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: nuxt/nuxt#15445.
Solutions:
We could implement a custom cache logic, but that's not ideal.
Solve it on project level, we could move menu components inside app.vue in projects, that way menus wouldn't get re-fetched on client side navigation and would need to be manually re-fetched when needed (e.g. language change). That would mean that we have menus on top level - app.vue, but we can also render menus inside different layouts (NuxtLayout) with named slots, so there shouldn't be any downside.
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)
The text was updated successfully, but these errors were encountered: