useFragment
doesn't respect the @nonreactive
directive
#11785
Labels
useFragment
doesn't respect the @nonreactive
directive
#11785
Issue Description
@nonreactive
field, write some data into the cache.useFragment
.@nonreactive
field.Expected behavior:
useFragment
does not react to such changes.Actual behavior:
useFragment
triggers update in the same way as it does without@nonreactive
directive.Test example: https://github.com/broyde/apollo-use-fragment-nonreactive/blob/main/test.js
FYI: I've noticed the same behavior of
useQuery
, but only in test environment (see test: https://github.com/broyde/apollo-query-nonreactive/blob/main/test.js). In real browseruseQuery
does not react to such changes, butuseFragment
does.Link to Reproduction
https://github.com/broyde/apollo-use-fragment-nonreactive
Reproduction Steps
No response
@apollo/client
version3.9.11
The text was updated successfully, but these errors were encountered: