Skip to content

Documentation / @ripl/vue / registerComponents

Function: registerComponents() ​

registerComponents(app, components): void

Defined in: adapters/vue/src/core/register.ts:20

Registers components on an app, skipping any name already taken.

The guard is what lets the Ripl plugins compose. Each returns a fresh object, so Vue's own plugin de-duplication — which is by object identity — never fires, and an adapter plugin that installs the core components would otherwise re-register every one of them and warn for each.

Parameters ​

ParameterTypeDescription
appAppThe app to register on.
componentsRecord<string, unknown>The components to register, keyed by the name to register them under.

Returns ​

void