Skip to main content

Module registry

Module registry 

Source
Expand description

The components, synthesizers, and template hooks an application registers once, frozen into one shared value before the application boots.

Component definitions live in the application, never in a global: the registry is built from the application’s provider, shared through the container, and handed to the engine and the update handler. Two applications in one test process therefore keep their own components.

Structs§

ComponentRegistry
The components and template hooks one application registered.

Enums§

RegistryError
Why an application’s component registration was rejected.

Functions§

normalize_name
Normalizes a component name: / becomes ., a leading ⚡ is removed, and :: namespaces are kept.

Type Aliases§

TemplateConfigurator
A callback that configures the .livewire engine’s environment.