DEV Community

Emmanuel Dalougou
Emmanuel Dalougou

Posted on

GraphQL or Redux

Always i'm ask myself the following question: Do i must use GraphQL instead Redux definitively ? or Redux instead GraphQL ? Any comments will help me to clearn my mind ❤️

Top comments (1)

Collapse
 
thecodingalpaca profile image
Carlos Trapet

Although GraphQL solves some of the problems Redux was created to solve, I don't think they're mutually exclusive at all.

I guess it largely depends on your project needs; try starting with a GraphQL query implementation, and if you ever feel like you need global state management that you can't fix with a combination of accurate server queries, props and the context-api, then and only then I'd suggest adding Redux to the pan.