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

Configure Feed

Select the types of activity you want to include in your feed.

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

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

authored by

Iha Shin (신의하)
Jovi De Croock
and committed by
GitHub
885a4392 63082110

+6 -5
+5
.changeset/healthy-years-ring.md
··· 1 + --- 2 + '@urql/solid': patch 3 + --- 4 + 5 + Correctly track query data reads with suspense
+1 -5
packages/solid-urql/src/createQuery.ts
··· 324 324 ): any { 325 325 if (isSuspense() && prop === 'data') { 326 326 const resource = dataResource(); 327 - if (resource !== undefined) { 328 - return resource.data; 329 - } 330 - 331 - return undefined; 327 + if (resource === undefined) return undefined; 332 328 } 333 329 334 330 return Reflect.get(target, prop);