I have a question for y'all. What's the expected behavior of the following?
useAsyncData(key, async () => { ... }, {
immediate: false,
watch: [trigger],
getCachedData: (key, nuxtApp) => {
return nuxtApp.payload.data[key] || nuxtApp.static.data[key];
}
});
I expect the cache to be used, if available, at every trigger call, but that does not seem to be the case. It seems like its never used and the async data handler gets called every time.