Skip to content
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

Access the example with a new document key for each person accessing the page #42

Open
chacha912 opened this issue Dec 22, 2022 · 1 comment
Labels
enhancement 🌟 New feature or request good first issue 🐤 Good for newcomers

Comments

@chacha912
Copy link
Contributor

Description:
When multiple users access the profile-stack example page, the number of users does not match the actual number of users who access the document because the document key is the same. Would it be better to access the example page with a new document key?

#38 (comment)
It would be better to issue a new document key. For the same reason, I think liveblocks also issues keys(roomId) for each user.

Why:
In the example below, two users are displayed on the page, but four are displayed in the iframe.
image

@hackerwins
Copy link
Member

I think this can be handled by creating a UUID for each browser, storing it in local storage, and dividing it by key. what do you think?

@hackerwins hackerwins added enhancement 🌟 New feature or request good first issue 🐤 Good for newcomers labels Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request good first issue 🐤 Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants