News for hackers. Stuff that matters.
Re:How GraphQL Replaces Redux by paxy on Tuesday March 13, 2018 @03:45PM (#16579121)
Will you make a fresh HTTP request every time the client needs to render a component? You could persist data client-side to make things more efficient. It would be best to use a state container to manage this. Maybe something like Redux?
Re:How GraphQL Replaces Redux by asp2insp on Tuesday March 13, 2018 @04:56PM (#16579700)
Naively, yes, but in practice this is one of the things a good graphql client library can solve. Apollo Client, for example, will bundle query fragments from all your components together into a single request, and manage caching under the hood for you.