M
M
MajorTom692018-07-25 10:40:10
Frontend
MajorTom69, 2018-07-25 10:40:10

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

3 answer(s)
R
Roman Aleksandrovich, 2018-07-25
@MajorTom69

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.

E
Eugene, 2018-08-05
Hz @joniks

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.

A
alexandrzbs, 2019-10-10
@alexandrzbs

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 question

Ask a Question

731 491 924 answers to any question