Redux with multiple application instances

Asked

Viewed 40 times

0

If Redux maintains a single component state and I have multiple instances of the application being used by multiple users, this means that users will view the same state in components? How to solve this problem when we actually want to that each user visualizes data relating to their user access?

I developed that application. I opened the application with 2 different browsers (Firefox and Chrome). If I log in to Chrome (user: alots, password: 123456), in Firefox the application will log in too. Since both browsers point to the same server, they are also pointing to the same state, so if I modify the state in one browser, this has an effect on the other. That is, the application will be rendered in the same state for different users! This is the problem I’m questioning, how to separate this state for different instances of the system.

  • I use the Vuex which is equivalent to Redux. The main idea of these features is to share the state between the components where communication becomes difficult. I have used Vuex in a hybrid application (application) and this that you just reported has not occurred to me.This means that users will view the same state in the components? You shouldn’t! You’d have to understand your problem better.

  • Here it is normal. I know it is old, just leaving here for those who see this question and do not waste time.

  • Do not use onEnter in the react-router@4

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.