SheetXL - v1.0.2
    Preparing search index...

    Function lazyPanel

    • Creates a lazily loaded panel component: a loading panel while its module loads, and a LazyLoadErrorPanel with a Retry button if the load fails.

      Type Parameters

      • C extends ComponentType<any>

      Parameters

      • loader: () => Promise<{ default: C }>

        Loads a module whose default export is the panel component.

      Returns FC<ComponentProps<C>>

      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.

      const FormatTaskPane = lazyPanel(
      defineLazyModule('studio:formatTaskPane', () => import('./FormatTaskPane')).load
      );