Implements ISsrService.
Holds the resolved RR request handler, the factory for its per-request
context provider, and the optional populateLoadContext hook, and delegates
render() to the request bridge.
SsrService(handler: SsrRequestHandler,createLoadContext: () => RouterLoadContext,populateLoadContext: PopulateLoadContext | undefined)
Parameters
handler: SsrRequestHandler
The resolved RR request handler
createLoadContext: () => RouterLoadContext
Factory for the per-request context provider,
sourced from the same react-router module as handler
populateLoadContext: PopulateLoadContext | undefined
Optional hook adding app values to the context
Since 0.1.0
render(ctx: IRequestContext): Promise<HandlerResult>
Renders an SSR document for the given request context.