News for hackers. Stuff that matters.
Re:How GraphQL Replaces Redux by Blackstone4 on Tuesday March 13, 2018 @01:53PM (#16578137)
I've been using Apollo Client and React to manage state on a medium size React app (i.e. no Redux). Interested to hear your thoughts here. Have you been using Redux + Apollo Client + React on a medium to large app?
Re:How GraphQL Replaces Redux by duckfruit on Tuesday March 13, 2018 @02:13PM (#16578341)
I've only used GraphQL (with Relay) on fairly large apps but in my experience the number of apps that don't benefit from some sort of client side state management tends to fall into a very small window.

Introducing state management doesn't come for free, of course. That is an extra layer of complexity that you have to reason and maintain. And if your app doesn't need any client side caching or you don't envision a need to have shared state between your components maybe you don't need to have something like Redux. But I feel like the use cases for those sort of apps tend to be pretty narrow.

edit: Another commenter mentioned a good point that gets to the heart of your question better than my rambling -- You are still managing state in your app - just with Apollo instead of Redux.

Re:How GraphQL Replaces Redux by abritinthebay on Tuesday March 13, 2018 @02:04PM (#16578244)
That's not GraphQL replacing Redux - that's Relay (ie, Apollo) replacing Redux.

So yes, you can replace Redux with something different. There are pros and cons to it, but it's not required or even fundamental to implementing GraphQL in a React app

Re:How GraphQL Replaces Redux by atom_arranger on Tuesday March 13, 2018 @08:29PM (#16581202)
What about client side state? Form validations? Any sort of user input before it's being sent to the server. You also may need ways to handle persistence or offline use.

There are some new features in Apollo for handling client side state but I'm sticking to Redux for now (for client side state, I am using Apollo for some data fetching).