3

I do not know how to ask this question more formally. I was looking for state management in React while using Next.js, for example redux or react-query. I have seen a lot of comments that say something along the lines:

Be careful to NOT do that because the users of your application will share the same state

I do not fully understand what this means and how to actually implement something like this to grasp why and how is happening.

So is there a minimal example where you set a state management "the wrong way" and different users can access the state of other users ?

entropyfeverone
  • 1,052
  • 2
  • 8
  • 20
  • Hi @entropyfeverone can you provide links to where you see these types of comments. I can say that a default state management setup (redux or similar) does not have this kind of effect. To able to share state like this it would have to come from the server. – Andres Zapata Apr 06 '22 at 11:36
  • @AndresZapata Yes it's about Server Side Rendering. It's been some time since I have read these kind of comment but I will try to find them and add them as a reference to my original post. – entropyfeverone Apr 06 '22 at 11:38

0 Answers0