D
D
DeniSidorenko2020-12-16 10:57:05
React
DeniSidorenko, 2020-12-16 10:57:05

Redux + Context on the project, right or what is better?

Good afternoon, I use Redux on the project, however, to check the registration data, as well as to store the token, I use Context. Are there any problems if you use both options on the project, or is it still worth abandoning Context and doing everything on Redux?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EastJesus, 2020-12-16
@EastJesus

Context is not needed for these purposes, it is better not to pass critical data in it. In the context, you can pass non-critical data that is used in many parts of the application - for example, the current theme, locale, etc.
So they are not interchangeable, use Redux to store application state

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question