nuxt-custom-fetch 4.0.0-alpha.3 → 4.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime/ajax.js +6 -0
- package/package.json +1 -1
package/dist/runtime/ajax.js
CHANGED
|
@@ -135,6 +135,12 @@ export class CustomFetch {
|
|
|
135
135
|
const controller = typeof AbortController !== "undefined" ? new AbortController() : {};
|
|
136
136
|
const nuxtApp = useNuxtApp();
|
|
137
137
|
if (import.meta.client && !nuxtApp.isHydrating) {
|
|
138
|
+
if (nuxtApp._asyncData[key]) {
|
|
139
|
+
return nuxtApp._asyncData[key].execute({
|
|
140
|
+
cause: "initial",
|
|
141
|
+
dedupe: options.dedupe
|
|
142
|
+
});
|
|
143
|
+
}
|
|
138
144
|
const _ref = options.deep ? ref : shallowRef;
|
|
139
145
|
options.default ??= () => asyncDataDefaults.value;
|
|
140
146
|
const asyncData = {
|