# Interface SubAppRenderPipeline

Manage the steps of rendering a subapp

Each instance of this represents a unique rendering of a given subapp.

It should contain all the information and options for the instance only.

interface SubAppRenderPipeline {
_mount: ((info) => void);
_reload: (() => Promise<any>);
_unmount: ((info) => void);
executeRender: (() => void);
getPrepResult: (() => SubAppFeatureResult);
isPrepared: (() => boolean);
start: ((reload?) => Promise<any>);
startPrepare: (() => void);
waitForPrepare: (() => Promise<SubAppFeatureResult>);
}

#### Implemented by

- SubAppServerRenderPipeline

- Defined in subapp/subapp-render-pipeline.ts:10

#####
Index

### Properties

_mount
_reload
_unmount
executeRender
getPrepResult
isPrepared
start
startPrepare
waitForPrepare

## Properties

### _mount

_mount: ((info) => void)

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

#### Type declaration

- - (info): void

  - #### Parameters

    - info: SubAppMountInfo

    #### Returns void

- Defined in subapp/subapp-render-pipeline.ts:30

### _reload

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

Hot module reload (HMR) support

#### Type declaration

- - (): Promise<any>

  - #### Returns Promise<any>

- Defined in subapp/subapp-render-pipeline.ts:28

### _unmount

_unmount: ((info) => void)

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

#### Type declaration

- - (info): void

  - #### Parameters

    - info: SubAppMountInfo

    #### Returns void

- Defined in subapp/subapp-render-pipeline.ts:32

### executeRender

executeRender: (() => void)

Actually render the subapp (client or server side). subapp must've been prepared.

#### Type declaration

- - (): void

  - #### Returns void

- Defined in subapp/subapp-render-pipeline.ts:25

### getPrepResult

getPrepResult: (() => SubAppFeatureResult)

#### Type declaration

- - (): SubAppFeatureResult

  - #### Returns SubAppFeatureResult

- Defined in subapp/subapp-render-pipeline.ts:21

### isPrepared

isPrepared: (() => boolean)

Check if pipeline is prepared

#### Type declaration

- - (): boolean

  - #### Returns boolean

- Defined in subapp/subapp-render-pipeline.ts:20

### start

start: ((reload?) => Promise<any>)

#### Type declaration

- - (reload?): Promise<any>

  - #### Parameters

    - `Optional` reload: boolean

    #### Returns Promise<any>

- Defined in subapp/subapp-render-pipeline.ts:26

### startPrepare

startPrepare: (() => void)

Kick off executing a subapp's features to prepare it for rendering

#### Type declaration

- - (): void

  - #### Returns void

- Defined in subapp/subapp-render-pipeline.ts:14

### waitForPrepare

waitForPrepare: (() => Promise<SubAppFeatureResult>)

Async wait for the subapp's prepare to finish

#### Type declaration

- - (): Promise<SubAppFeatureResult>

  - #### Returns Promise<SubAppFeatureResult>

- Defined in subapp/subapp-render-pipeline.ts:18