Answer the question
In order to leave comments, you need to log in
When to use React + Redux + Gaphql, and when can you get by with React + Graphql?
I wrote a server using graphql, now I want to use it in the front, but the question arose, is it necessary to use redux in this case, is it not overkill?
Answer the question
In order to leave comments, you need to log in
it all depends on the size of the project. I think that if the project is not large and it is convenient for you to transfer data among these components, then it makes no sense to connect redux. But if you understand that you are already confused where what is being thrown, or you understand that in order to pass data into the component you need, you need to pass it through 2 more components, then it's time to connect the redux.
Redux is usually used for the global store (for example, for authorization data, etc.). But with the beginning of the active use of Graphql, it seemed to me that it was quite possible to do without redax.
Here you can find the answer to this question. Just recently read it myself.
In short, when using gql, there is no need to use redux. gql encourages the use of local state.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question