Setu-TS
    Preparing search index...

    Interface ISsrService

    Service contract for server-side rendering (SSR).

    Registered by the React Router plugin under CAPABILITIES.SSR. The single render method receives the kernel's request context, delegates to the React Router request handler, and writes the resulting web Response back through IResponse (streaming or buffered).

    import { CAPABILITIES } from '@setu-ts/common';

    const ssr = ctx.services.get<ISsrService>(CAPABILITIES.SSR);
    const result = await ssr.render(ctx);
    return result;

    0.1.0

    interface ISsrService {
        render(ctx: IRequestContext): Promise<HandlerResult>;
    }

    Implemented by

    Index