@tanstack/vue-query 4.17.1 → 4.18.0

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.
@@ -1889,6 +1889,12 @@
1889
1889
  return (_this$queryCache$find = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find.state.data;
1890
1890
  }
1891
1891
 
1892
+ ensureQueryData(arg1, arg2, arg3) {
1893
+ const parsedOptions = parseQueryArgs$1(arg1, arg2, arg3);
1894
+ const cachedData = this.getQueryData(parsedOptions.queryKey);
1895
+ return cachedData ? Promise.resolve(cachedData) : this.fetchQuery(parsedOptions);
1896
+ }
1897
+
1892
1898
  getQueriesData(queryKeyOrFilters) {
1893
1899
  return this.getQueryCache().findAll(queryKeyOrFilters).map(({
1894
1900
  queryKey,