Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Primitives
  2. Dynamic Importer
  3. API and Development

Dynamic Importer

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
dynamicImport from @prepared911/ui/dynamic-importer returns a component. The import function is called at most once at a time. A failed call is forgotten. The returned component has preload(), which never rejects.
Options
OptionMeaning
onErrorRequired reporter. Receives the error and { phase, componentStack }.
loadingLabelRequired. Names the busy region.
errorTitle / retryLabelDefault recovery. Required together.
errorDescriptionOptional recovery copy.
errorAppearancePanel or Inline.
ErrorFallbackCustom recovery. Needs errorAnnouncement and excludes the default recovery options.
Import
Previous
Dynamic Importer / Usage
Next
Dynamic Importer / Accessibility
On this page
Options
Import