3 ms·
Apollo has been in the lead for a while—it currently has 125k weekly downloads on npm, vs Relay's 20k. You can use the new render prop API instead of the HOC A
by lorendsr 8y ago
Apollo has been in the lead for a while—it currently has 125k weekly downloads on npm, vs Relay's 20k.
You can use the new render prop API instead of the HOC API if you don't like wrapping.
The data fetching itself is separate from the view layer—it's all done by Apollo. From a maintenance perspective, listing data needs is great to have in the view layer, colocated with the components that use them.
You can manually fetch data via GraphQL and put in Redux, but there are a ton of benefits to having a library like Apollo manage the store for you. Automatic normalization, querying from either store or server (or both), optimistic mutation updates, etc.