A
A
Andrey2018-03-21 01:50:17
React
Andrey, 2018-03-21 01:50:17

Storing (for layout) application state data in Redux. Is it adequate?

Does it make sense to store the state of many windows in redux? (open/closed)
Specifically, I would like to store whether the mobile version of the application is open or not (depending on window.innerWidth, for example)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-03-21
@andrey_koyta

If something is easier to do without redux, don't pull it there. This applies to everything: forms, modals, filters and more.
It is better to determine the version by the user agent, and pass this data through the context.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question