I have the same value for the variables on different devices. #9422
Replies: 3 comments 1 reply
-
Is this array defined in a module? If so there is only one instance for the entire app. So all requests will share the same array. You can use Remix sessions to store data for individual users. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your response. I have another problem with sessions that I can't figure out. Why is it only saved when I do a redirect, and I can't save it freely whenever I need to in my code? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm experimenting with fetcher to add and remove elements from an array. Everything works correctly, but when I access the app from another browser, I find the same values as the device on which I performed the initial array operations. The array and the methods are in a separate .ts file. I would like to know if this behavior of Remix is correct and how I can avoid sharing the state of variables between devices.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions