Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
0
fork

Configure Feed

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

Update README.md

authored by

Jovi De Croock and committed by
GitHub
2b641c51 13f3e995

+3 -15
+3 -15
README.md
··· 95 95 ## Tracking unused fields 96 96 97 97 Currently the tracking unused fields feature has a few caveats with regards to tracking, first and foremost 98 - it will only track in the same file to encourage [fragment co-location](https://www.apollographql.com/docs/react/data/fragments/#colocating-fragments). 99 - Secondly it supports a few patterns which we'll add to as time progresses: 100 - 101 - ```ts 102 - // Supported cases: 103 - const result = (await client.query()) || useFragment(); 104 - const [result] = useQuery(); // --> urql 105 - const { data } = useQuery(); // --> Apollo 106 - const { field } = useFragment(); 107 - const [{ data }] = useQuery(); 108 - const { 109 - data: { pokemon }, 110 - } = useQuery(); 111 - ``` 98 + it will only track the result and the accessed properties in the same file to encourage 99 + [fragment co-location](https://www.apollographql.com/docs/react/data/fragments/#colocating-fragments). 112 100 113 - Lastly we don't track mutations/subscriptions as some folks will add additional fields to properly support 101 + Secondly, we don't track mutations/subscriptions as some folks will add additional fields to properly support 114 102 normalised cache updates. 115 103 116 104 ## Fragment masking