yorkie-team / yorkie-team.github.io

Yorkie Homepage and Documentation
https://yorkie.dev
Apache License 2.0
15 stars 15 forks source link

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

Open chacha912 opened 1 year ago

chacha912 commented 1 year ago

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?

https://github.com/yorkie-team/yorkie-team.github.io/pull/38#issuecomment-1360537787 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 commented 11 months ago

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?