The server side rendering pipeline for a subapp

The pipeline involves preparing the data (which is async), and then rendering the component to string or stream, which can be sync or async.

It's also possible that the subapp only wants the data but not actually rendering the component.

  • load will setup this and kick off prepare data
  • start will await for prepare data and render, and inject result into HTML

Implements

Constructors

Properties

_mount: ((info) => void)

For HMR: a component mount itself to the subapp/pipeline - empty filler

Type declaration

_reload: (() => Promise<any>)

Hot module reload (HMR) support - empty filler

Type declaration

    • (): Promise<any>
    • Returns Promise<any>

_unmount: ((info) => void)

For HMR: a component unmount itself from the subapp/pipeline - empty filler

Type declaration

framework?: ServerFrameworkLib

options for rendering the subapp into HTML page

outputSpot?: any

spot in HTML output to inject the result from SSR

prepResult?: SubAppFeatureResult

data from prepareData

preparePromise?: Promise<unknown>

the promise for subapp's data prepare

ssrData?: SubAppSSRData
startTime?: number
INITIAL_STATE_TAG_ID: number = 0

Methods