8000 refactor(nuxt): directly access initialised `asyncData` · nuxt/nuxt@e779d6c · GitHub
[go: up one dir, main page]

Skip to content

Commit e779d6c

Browse files
committed
refactor(nuxt): directly access initialised asyncData
1 parent c516774 commit e779d6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nuxt/src/app/composables/asyncData.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ function createAsyncData<
727727
// TODO: disable in v4 in favour of custom caching strategies
728728
if (purgeCachedData && !hasCustomGetCachedData) {
729729
clearNuxtDataByKey(nuxtApp, key)
730-
nuxtApp._asyncData[key]!.execute = () => Promise.resolve()
730+
asyncData.execute = () => Promise.resolve()
731731
// TODO: remove when upgrading to v4
732-
nuxtApp._asyncData[key]!.data.value = asyncDataDefaults.value
732+
asyncData.data.value = asyncDataDefaults.value
733733
}
734734
},
735735
}

0 commit comments

Comments
 (0)
0