Interface FeatureHubContextProviderValue

Hierarchy

  • FeatureHubContextProviderValue

Properties

asyncSsrManager?: AsyncSsrManagerV1

The Async SSR Manager Feature Service that is bound to the integrator. It is only provided on the server.

featureAppManager: FeatureAppManager

The FeatureAppManager singleton instance.

logger?: Logger

A custom logger that shall be used instead of console.

Methods

  • A callback that the integrator provides on the server, mainly for the FeatureAppLoader, to add stylesheets for those Feature Apps that are rendered on the server, so that they can be added to the document before being sent to the client. This method might be called multiple times with the same list of stylesheets (per Feature App) during server-side rendering. Therefore deduplication should be considered.

    Parameters

    • stylesheets: Css[]

      A list of stylesheets for a Feature App that is rendered on the server.

    Returns void

  • A callback that the integrator provides on the server, mainly for the FeatureAppLoader, to add client URLs of those Feature Apps that are rendered on the server, so that they can be preloaded on the client before hydration. This method might be called multiple times with the same URL during server-side rendering. Therefore deduplication should be considered.

    Parameters

    • url: string

      The client URL of a Feature App that is rendered on the server.

    • Optional moduleType: string

      The client module type of the Feature App that is rendered on the server. This value can be used by the provided FeatureAppManagerOptions.moduleLoader.

    Returns void

Generated using TypeDoc