Creates a lazily loaded panel component: a loading panel while its module loads, and a LazyLoadErrorPanel with a Retry button if the load fails.
Loads a module whose default export is the panel component.
The panel carries its own Suspense boundary, so a host can render it like any other component. Intended for content that is shown on demand (a task pane, a tab of a dialog), so that its code is not part of the startup bundle.
Suspense
const FormatTaskPane = lazyPanel( defineLazyModule('studio:formatTaskPane', () => import('./FormatTaskPane')).load); Copy
const FormatTaskPane = lazyPanel( defineLazyModule('studio:formatTaskPane', () => import('./FormatTaskPane')).load);
Creates a lazily loaded panel component: a loading panel while its module loads, and a LazyLoadErrorPanel with a Retry button if the load fails.