-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow simulatenous usage of multiple blocks on the same page #159
Comments
Yep, Agree! |
As mentioned above, we had a call with hydrogen maintainers where we discussed potential strategies to implement simultaneous usage of the same session. Potential strategies would be:
Considering 1. would not allow multiple tabs (only multiple instances in the same page), but 2. would, we should attempt 2. instead. We can explore 1. if 2. ends up not being feasible. |
We've now made a proposal to implement this feature in Hydrogen, and created a ticket to track it. |
element-hq/hydrogen-web#1045
This description has been added by @psrpinto for context:
At the moment, when there's multiple blocks on a page, opening a session on one of the blocks, closes it on all others. This is intended, since Hydrogen does not allow having the same session open in multiple instances of the client, which could cause data corruption.
I can see three ways to address this issue:
The ideal scenario would be 1. since both 2. and 3. will result in the user having to log-in in each block, which is not ideal. Alternatively we could explore ways to workaround this, by "cloning" the session, though my guess is this won't be easy to get right. So I think we should first rule out 1. before attempting 2. or 3.
Concerning 1., at this point it's not clear whether it would be possible to do this in hydrogen. We should check with hydrogen maintainers whether they have considered this possibility, or if they have plans to implement it in the future, and what it would take to achieve this, technically.
There are also implications in what concerns SSO, since when the user gets back to the page at the end of the SSO flow, only one of the blocks should perform SSO completion, with the other blocks probably having to "wait" until SSO completion is done and a session is created.
PRs
The text was updated successfully, but these errors were encountered: