Skip to content

Master plugin onmounted ged#1865

Open
ged-odoo wants to merge 1 commit into
masterfrom
master-plugin-onmounted-ged
Open

Master plugin onmounted ged#1865
ged-odoo wants to merge 1 commit into
masterfrom
master-plugin-onmounted-ged

Conversation

@ged-odoo

Copy link
Copy Markdown
Contributor

No description provided.

Plugins previously only had onWillStart/onWillDestroy. They now also
support onMounted/onWillUnmount, giving them almost the full component
lifecycle surface.

Lifting the mounted/willUnmount arrays from ComponentNode up to Scope
(owl-core) means both ComponentNode and PluginManager carry them.
onMounted/onWillUnmount now use useScope() so they work on any scope,
and providePlugins forwards manager.mounted/willUnmount to the host
component via single wrapper hooks — the same idiom already used for
onWillStart (manager.ready) and onWillDestroy (manager.destroy). For
app-level plugins, App fires pluginManager.mounted on first root mount
and pluginManager.willUnmount at the start of App.destroy.

Ordering follows the "plugin is a child of the host that provides it"
model: on mount, children -> plugin -> host-own; on unmount, host-own
-> plugin -> children.
@ged-odoo ged-odoo force-pushed the master-plugin-onmounted-ged branch from 7543bbe to d921127 Compare April 22, 2026 11:27
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.

1 participant