2 ms·
You can’t pass along the result (not exactly but that’s how it looks) of a query to a component and query more things on it. An example might be something like
by atom_arranger 5y ago
You can’t pass along the result (not exactly but that’s how it looks) of a query to a component and query more things on it.
An example might be something like, you have a page showing a user, and you have a ProfilePicture component with certain data requirements (e.g. get picture at 100X100). It would be nice if you could pass down the user and have the ProfilePicture component query the data it needs, with this being merged into the parent request.
In Relay this kind of thing can be done with useFragment.
In this solution it seems you could just pass the user.
Apollo/urql don’t support this pattern, everything must be in one top level query, or multiple queries (bad perf).