@tanstack/solid-query 4.5.0 → 4.6.1
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,11 @@
|
|
|
1092
1092
|
var _this$cache$config$on2, _this$cache$config2;
|
|
1093
1093
|
|
|
1094
1094
|
if (typeof data === 'undefined') {
|
|
1095
|
-
|
|
1095
|
+
{
|
|
1096
|
+
this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: " + this.queryHash);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
onError(new Error('undefined'));
|
|
1096
1100
|
return;
|
|
1097
1101
|
}
|
|
1098
1102
|
|
|
@@ -2725,6 +2729,10 @@
|
|
|
2725
2729
|
return this.result;
|
|
2726
2730
|
}
|
|
2727
2731
|
|
|
2732
|
+
getQueries() {
|
|
2733
|
+
return this.observers.map(observer => observer.getCurrentQuery());
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2728
2736
|
getOptimisticResult(queries) {
|
|
2729
2737
|
return this.findMatchingObservers(queries).map(match => match.observer.getOptimisticResult(match.defaultedQueryOptions));
|
|
2730
2738
|
}
|