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

fix(extensible-areas): change return type of contentFunction #114

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

Arthurk12
Copy link
Collaborator

@Arthurk12 Arthurk12 commented Sep 17, 2024

What does this PR do?

Changes the return type of contentFunction in FloatingWindow and GenericContent extensible areas.

This change is necessary because the components provided by plugins, when rendered in the core, were left in the DOM Tree. This occurs because the plugins and the core are two separate ReactJS applications, each using its own ReactDOM instance. The contentFunction must now return the root element created by the plugin's ReactDOM instance to allow the core to properly unmount it.

Closes Issue(s)

Closes #112

More

Relate Core's PR:

This change is necessary because the components provided by plugins,
when rendered in the core, were left in the DOM Tree. This occurs
because the plugins and the core are two separate ReactJS applications,
each using its own ReactDOM instance. The `contentFunction` must now return
the root element created by the plugin's ReactDOM instance to allow the core
to properly unmount it.
- Updates samples using `contentFunction` to return the created root
  element.
- Adds missing `open` parameter in SampleGenericContentSidekickPlugin.
@GuiLeme GuiLeme self-requested a review September 24, 2024 18:52
@TiagoJacobs TiagoJacobs merged commit 25c31aa into bigbluebutton:main Oct 3, 2024
3 checks passed
@TiagoJacobs
Copy link
Member

Published in SDK version v0.0.60

@Arthurk12
Copy link
Collaborator Author

I have just updated the related BBB-core PR to point to the right SDK's version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated Components in Generic Content Extensible Areas
2 participants