@tanstack/react-query 4.6.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.
|
@@ -1116,7 +1116,11 @@
|
|
|
1116
1116
|
var _this$cache$config$on2, _this$cache$config2;
|
|
1117
1117
|
|
|
1118
1118
|
if (typeof data === 'undefined') {
|
|
1119
|
-
|
|
1119
|
+
{
|
|
1120
|
+
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);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
onError(new Error('undefined'));
|
|
1120
1124
|
return;
|
|
1121
1125
|
}
|
|
1122
1126
|
|