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

[IMP] owl: add basic support for sub roots #1641

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

ged-odoo
Copy link
Contributor

In this commit, we extend the owl App class to support multiple sub roots. This is useful for situations where we want to mount sub components in non-managed DOM. This is exactly what the Knowledge app is doing, with mounting views in an html editor.

Currently, this requires some difficult and fragile hacks, and still, the result is that it is very easy to mix components from the main App and a SubApp. But Knowledge does not actually care about creating a sub app. It only needs the possibility to mount sub components in dynamic places.

closes #1640

@ged-odoo ged-odoo force-pushed the master-sub-root branch 2 times, most recently from 781a7be to fb88d48 Compare September 26, 2024 14:16
src/runtime/app.ts Outdated Show resolved Hide resolved
src/runtime/app.ts Outdated Show resolved Hide resolved
In this commit, we extend the owl App class to support multiple sub
roots. This is useful for situations where we want to mount sub
components in non-managed DOM. This is exactly what the Knowledge app is
doing, with mounting views in an html editor.

Currently, this requires some difficult and fragile hacks, and still,
the result is that it is very easy to mix components from the main App
and a SubApp.  But Knowledge does not actually care about creating a sub
app. It only needs the possibility to mount sub components in dynamic
places.

closes #1640
@sdegueldre sdegueldre merged commit eb2b32a into master Sep 27, 2024
3 checks passed
@sdegueldre sdegueldre deleted the master-sub-root branch September 27, 2024 19:35
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.

app should have a way to have multiple roots
4 participants