Hey all,
I have popups that set data sources based on custom states. (i.e. store "Movie’s " as a state in a group and use that stored object (Movie’s) to show information on available shows for that movie).
- What happens if multiple users are logged in at the same time and using the same popup?
- Will they be overriding each others states or does the popup retain the current states set by the user?
1 Like
1 page load = 1 state.
1 user could open 2 different pages and there would be 2 different states for that user. Because it depends on the page, not the user.
Thanks @rico.trevisan.
For clarity:
User 1 opens Popup A and begins setting states.
User 2 opens Popup A at the same time and begins setting different states.
When User 1 clicks save - the data only grabs User 1’s states.
When user 2 clicks save - the data only grabs User 2’s states.
Correct?
@rico.trevisan Does it require I set the popup to “Current User” or Bubble is smart enough to figure it all out 
Custom states are purely for doing temporary things on screen. If you’re setting a state it only exists on that person monitor. If the person refreshes the page all the custom states are reset to blank (unless you set states on page load or something). It doesn’t write anything to the database and there’s no way for one person on the same page to see someone else’s custom state. Even the same logged in user on the same page looking at the same popup wouldn’t see each others custom state that you set.
If you do want people to see the same data then you would want to start doing “Make changes to a thing” and actually saving it in the database.
The user is always Current user
. Even if the user is NOT logged in that user is Current user
.
1 Like