@tanstack/solid-query 5.90.8 → 5.90.10
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 +1 -1
- package/build/dev.js +1 -1
- package/build/index.cjs +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
- package/src/useBaseQuery.ts +1 -1
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.
|
|
3
|
+
"version": "5.90.10",
|
|
4
4
|
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"!src/__tests__"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@tanstack/query-core": "5.90.
|
|
49
|
+
"@tanstack/query-core": "5.90.7"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@solidjs/testing-library": "^0.8.10",
|
package/src/useBaseQuery.ts
CHANGED
|
@@ -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 {
|