-
Notifications
You must be signed in to change notification settings - Fork 130
Add room connect disconnect hack #1199
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
Conversation
🦋 Changeset detectedLatest commit: 67e41a3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 📦
|
| * | ||
| * @public | ||
| */ | ||
| export function useSequentialRoomConnectDisconnect( |
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.
it's a very descriptive name.
Definitely can see why you chose the name, but if you can think of something a bit more concise I wouldn't mind 😅
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.
It's a really hard one to name... that one was the best I could come up with. I'll keep pondering it but definitely open to suggestions!
de6e0dc to
1b81b55
Compare
1b81b55 to
67e41a3
Compare
Per @lukasIO's and my discussion, adds a hook that can be used to work around
useEffects not waiting for aroom.disconnect()to finish in the cleanup function before running aroom.connect().I tested it out in
agent-starter-embedand it seemed to do what was expected.