3 ms·
> really only exists with Apollo Citation needed. If two components call into the same data fetching utility for expediency's sake, and that utility queries da
by zbentley 4y ago
> really only exists with Apollo
Citation needed. If two components call into the same data fetching utility for expediency's sake, and that utility queries data that one or both components do not need, you have this problem. What makes that uniquely likely with Apollo?
- andrewingram 4y agoIt’s more that compared to Relay, which is explicitly designed around preventing components using data they didn’t explicitly declare as a dependency, Apollo (along with most other GraphQL clients) doesn’t go that extra mile. Whether it’s a React component, or a just a plain old function, Relay has mechanisms to prevent the kind of problem you’re describing. It has a steep learning curve, but it’s very well considered.