@tanstack/solid-query 4.4.0 → 4.6.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.
@@ -1092,7 +1092,7 @@
1092
1092
  var _this$cache$config$on2, _this$cache$config2;
1093
1093
 
1094
1094
  if (typeof data === 'undefined') {
1095
- onError(new Error('Query data cannot be undefined'));
1095
+ onError(new Error("Query data cannot be undefined - affected query key: " + this.queryHash));
1096
1096
  return;
1097
1097
  }
1098
1098
 
@@ -2725,6 +2725,10 @@
2725
2725
  return this.result;
2726
2726
  }
2727
2727
 
2728
+ getQueries() {
2729
+ return this.observers.map(observer => observer.getCurrentQuery());
2730
+ }
2731
+
2728
2732
  getOptimisticResult(queries) {
2729
2733
  return this.findMatchingObservers(queries).map(match => match.observer.getOptimisticResult(match.defaultedQueryOptions));
2730
2734
  }