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

app should have a way to have multiple roots #1640

Open
ged-odoo opened this issue Sep 19, 2024 · 0 comments
Open

app should have a way to have multiple roots #1640

ged-odoo opened this issue Sep 19, 2024 · 0 comments

Comments

@ged-odoo
Copy link
Contributor

Knowledge has to create a new app for each embedded components. This is slightly annoying because there is some bookkeeping to do to copy the app configuration. Also, the sub app cannot have the same template cache, since compiled templates keep a reference to the app and doing that may cause weird crashes.

Another usecase could be website, which may have 1 single owl app with multiple roots all over the page.

I don't think that it would be very difficult to modify the App class to support multiple root nodes:

app.mount(Component, root)
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

No branches or pull requests

1 participant