Closed negezor closed 2 weeks ago
Latest commit: f5136a4aa7553e089412ebcd3a7cade3d8f3b361
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Summary
Instead of using
ref
for deep objects, it is much more efficient from a performance point of view to look at reactivity only at the moment of setting the value, rather than changing its internal properties.Set of changes
ref
withshallowRef
for the client inuseClient.ts
ref
withshallowRef
forerror
,operation
andextensions
inuseMutation.ts
,useQuery.ts
anduseSubscription.ts
I don't consider this a breaking change since these properties should always be considered read-only. Since properties are always overwritten completely, and nested reactivity is not needed in them. Because changing them will not lead to the desired result in most cases.