@tanstack/solid-query 4.6.0 → 4.7.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
- onError(new Error("Query data cannot be undefined - affected query key: " + this.queryHash));
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