We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b296b commit d537d2bCopy full SHA for d537d2b
.changeset/green-lands-occur.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tanstack/solid-query': patch
3
4
+
5
+Skip errors if returned data is undefined
packages/solid-query/src/useBaseQuery.ts
@@ -159,7 +159,7 @@ export function useBaseQuery<
159
const query = observer().getCurrentQuery()
160
const unwrappedResult = hydratableObserverResult(query, result)
161
162
- if (unwrappedResult.isError) {
+ if (result.data !== undefined && unwrappedResult.isError) {
163
reject(unwrappedResult.error)
164
unsubscribeIfQueued()
165
} else {
0 commit comments