Lilact
    Preparing search index...

    Function lazy

    • Creates a lazily evaluated component from a module or promise factory.

      The factory is executed while lazy-loading mode is enabled. The returned component suspends by throwing the pending promise until the factory resolves, or throws the loading error if the factory fails.

      Parameters

      • factory: Function

        Function that returns a component, module, promise, or thenable resolving to a component or module.

      Returns Function

      A component that renders the resolved component.

      The pending promise or loading error while the component is unresolved.