News for hackers. Stuff that matters.
Re:Hacker News Clone Using GraphQL and React by chrisco255 on Sunday October 01, 2017 @11:15PM (#15381494)
Apollo manages your data store automatically. It uses Redux internally. Because Apollo wraps the queries and mutations, it smartly caches data and only fetches the minimal amount necessary to build the page. Apollo reduces the amount of Redux CRUD boiler plate dramatically (by as much as 2/3 or more).

There are no traps there, everything is configurable. The documentation is really clean. Highly recommend Apollo.

Once you have this stack wired up, it empowers you to be quite nimble with your development.

Re:Hacker News Clone Using GraphQL and React by bpicolo on Monday October 02, 2017 @08:52AM (#15383388)
> everything is configurable

Arguably that's it's own trap. Convention over configuration has saved millions of man hours in e.g. Rails projects, but a lot of JS land involves sinking a lot of time into the opposite.

Re:Hacker News Clone Using GraphQL and React by chrisco255 on Monday October 02, 2017 @11:16AM (#15384420)
You can just stick with the defaults until you run into issues or need advanced features like optimistic updates or real-time communication via websockets. Apollo also makes it easy to long poll if you're having consistency issues for some odd reason.