Interface ServerFrameworkLib

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

Methods

  • 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

    Returns Promise<any>