@tanstack/solid-query 5.90.8 → 5.90.9

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.
package/build/dev.cjs CHANGED
@@ -107,7 +107,7 @@ function useBaseQuery(options, Observer, queryClient) {
107
107
  queryCore.notifyManager.batchCalls(() => {
108
108
  const query = observer().getCurrentQuery();
109
109
  const unwrappedResult = hydratableObserverResult(query, result);
110
- if (unwrappedResult.isError) {
110
+ if (result.data !== void 0 && unwrappedResult.isError) {
111
111
  reject(unwrappedResult.error);
112
112
  unsubscribeIfQueued();
113
113
  } else {
package/build/dev.js CHANGED
@@ -106,7 +106,7 @@ function useBaseQuery(options, Observer, queryClient) {
106
106
  notifyManager.batchCalls(() => {
107
107
  const query = observer().getCurrentQuery();
108
108
  const unwrappedResult = hydratableObserverResult(query, result);
109
- if (unwrappedResult.isError) {
109
+ if (result.data !== void 0 && unwrappedResult.isError) {
110
110
  reject(unwrappedResult.error);
111
111
  unsubscribeIfQueued();
112
112
  } else {
package/build/index.cjs CHANGED
@@ -98,7 +98,7 @@ function useBaseQuery(options, Observer, queryClient) {
98
98
  queryCore.notifyManager.batchCalls(() => {
99
99
  const query = observer().getCurrentQuery();
100
100
  const unwrappedResult = hydratableObserverResult(query, result);
101
- if (unwrappedResult.isError) {
101
+ if (result.data !== void 0 && unwrappedResult.isError) {
102
102
  reject(unwrappedResult.error);
103
103
  unsubscribeIfQueued();
104
104
  } else {
package/build/index.js CHANGED
@@ -97,7 +97,7 @@ function useBaseQuery(options, Observer, queryClient) {
97
97
  notifyManager.batchCalls(() => {
98
98
  const query = observer().getCurrentQuery();
99
99
  const unwrappedResult = hydratableObserverResult(query, result);
100
- if (unwrappedResult.isError) {
100
+ if (result.data !== void 0 && unwrappedResult.isError) {
101
101
  reject(unwrappedResult.error);
102
102
  unsubscribeIfQueued();
103
103
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-query",
3
- "version": "5.90.8",
3
+ "version": "5.90.9",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -159,7 +159,7 @@ export function useBaseQuery<
159
159
  const query = observer().getCurrentQuery()
160
160
  const unwrappedResult = hydratableObserverResult(query, result)
161
161
 
162
- if (unwrappedResult.isError) {
162
+ if (result.data !== undefined && unwrappedResult.isError) {
163
163
  reject(unwrappedResult.error)
164
164
  unsubscribeIfQueued()
165
165
  } else {