mirror of
https://github.com/discourse/discourse.git
synced 2025-02-13 16:23:11 +08:00
![]() Previously, all plugin connector templates would be rendered using the PluginConnector classic component definition. This commit introduces three key changes: 1. PluginOutlets can be passed `@defaultGlimmer={{true}}`, which will cause all connectors to be rendered as highly-performant 'template only glimmer components'. For now, to avoid breaking backwards compatibility, this is only intended for use on newly introduced PluginOutlets. 2. Connector js files can now directly export component definitions. This allows connectors on existing outlets to start using Glimmer components (template-only, or otherwise) straight away. It also makes it much more ergonomic to introduce custom logic to outlets. `shouldRender` continues to be supported (as a static class method). 3. Outlet arguments are now made available as `@outletArgs` in classic, glimmer and template-only-glimmer connectors. In glimmer and template-only-glimmer connectors, this is the only way to access the outlet's arguments. In classic connectors, the old methods still function - `@outletArgs` exists as a path for incremental migration |
||
---|---|---|
.. | ||
acceptance | ||
addons/truth-helpers/integration/helpers | ||
fixtures | ||
helpers | ||
integration | ||
unit | ||
index.html | ||
setup-tests.js | ||
test-boot-ember-cli.js |