Skip to main content

Two Mechanisms

Events (Pub/Sub)

Emitting

Listening

One-Shot Listening

Unsubscribing

Full Example

Hooks (Extension Points)

Registering

Using

Removing

Full Example

Reacting to Lifecycle Events

After All Plugins Load

Use board:allPluginsLoaded when your plugin depends on other plugins being ready:

Listening to Other Plugins’ Events

Best Practices

Always use events or hooks — never import('./other-plugin.js').
my-plugin:action not action.
Remove event listeners and hooks in your teardown() function: