API and Development
@prepared911/ui-app-components exports:
ErrorBoundary: class component catching render errors; requires onError; optional FallbackComponent receiving FallbackProps (error, resetError).LoadingBoundary: centered loading UI for Suspense defaults.dynamicImport: factory wrapping lazy(), Suspense, and ErrorBoundary for route-sized chunks.Name | Type | Default | Description |
|---|---|---|---|
|
| — | Called when an error is caught — use for error reporting (e.g. |
|
| — | Custom component rendered when an error is caught. Defaults to an |
Interactive examples and edge cases for this component are in Storybook.
Returns a component wrapper; pass importFn, optional LoadingComponent, ErrorFallback, and onError in options.
On this page