Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

fix(solid): Correctly track query data reads with suspense (#3672)

Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>

Changed files
+6 -5
.changeset
packages
solid-urql
+5
.changeset/healthy-years-ring.md
···
+
---
+
'@urql/solid': patch
+
---
+
+
Correctly track query data reads with suspense
+1 -5
packages/solid-urql/src/createQuery.ts
···
): any {
if (isSuspense() && prop === 'data') {
const resource = dataResource();
-
if (resource !== undefined) {
-
return resource.data;
-
}
-
-
return undefined;
+
if (resource === undefined) return undefined;
}
return Reflect.get(target, prop);