# Interface ServerFrameworkLib

interface ServerFrameworkLib {
handleSSR?(data): Promise<SubAppSSRResult>;
handleSSRSync?(data, prepResult): SubAppSSRResult;
prepareSSR?(data): Promise<any>;
}

- Defined in node/types.ts:106

#####
Index

### Methods

handleSSR?
handleSSRSync?
prepareSSR?

## Methods

### `Optional` handleSSR

- handleSSR(data): Promise<SubAppSSRResult>

- async version of running actual SSR

  #### Parameters

  - data: SubAppSSRData

  #### Returns Promise<SubAppSSRResult>

  - Defined in node/types.ts:119

### `Optional` handleSSRSync

- handleSSRSync(data, prepResult): SubAppSSRResult

- Server side render a subapp sync.

  sync means the subapp's module must have been loaded

  #### Parameters

  - data: SubAppSSRData

    ssr data

  - prepResult: SubAppFeatureResult

  #### Returns SubAppSSRResult

  - Defined in node/types.ts:128

### `Optional` prepareSSR

- prepareSSR(data): Promise<any>

- Prepare a subapp's data and features for doing SSR.

  This is separate because preparing data is likely async and if app requires using the sync `renderToString`, then it has to be in two stages.

  #### Parameters

  - data: SubAppSSRData

  #### Returns Promise<any>

  - Defined in node/types.ts:116