API and Development
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.
| Option | Meaning |
|---|---|
onError | Required reporter. Receives the error and { phase, componentStack }. |
loadingLabel | Required. Names the busy region. |
errorTitle / retryLabel | Default recovery. Required together. |
errorDescription | Optional recovery copy. |
errorAppearance | Panel or Inline. |
ErrorFallback | Custom recovery. Needs errorAnnouncement and excludes the default recovery options. |