-
Notifications
You must be signed in to change notification settings - Fork 83
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
In the examples, add a helper function to generate a random user identity #691
Conversation
🦋 Changeset detectedLatest commit: c68155e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
nice, while we're at it, can we change it in a way that clicking the link in the overview menu also uses this function? so that opening the link multiple times generates a new user identity each time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only the comment above as a potential improvement
I have removed the Faker dependency and only use the new random user ID function. |
huh, that's even better :) |
This PR is intended to improve the user experience when using the examples. It is the direct result of a user request that encountered this problem.
When running the examples and then navigating directly to
localhost:3000/minimal
with two tabs, you end up with two identical users kicking each other out of the room.To prevent this from ever happening again, we now generate a random user id if no user id is set with the
user
query parameter.