-
Notifications
You must be signed in to change notification settings - Fork 134
Add attributes inspector and explicit dispatch support #144
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@MahmoudHemaid thanks for the PR - I've merged it to main and then made some improvements in here. great work this is now very nice! |
const { localParticipant } = useLocalParticipant(); | ||
|
||
// Update local attributes when props change | ||
useEffect(() => { |
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.
what's the purpose of running this effect ?
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 one-way sync from the parent, since the local one can have unsaved changes so doesn't directly bind to the parent attributes. not sure if its the best way, and also i don't currently have the parent actually observing attributes live either (for user, where they're editable)
This builds on #142 and adds: