Type alias HookResponse

HookResponse: void | {
    context?: SSRContext;
    head?: HeadClient;
    inserts?: {
        body?: string;
        bodyAttrs?: string;
        dependencies?: string[];
        headTags?: string;
        htmlAttrs?: string;
    };
    router?: Router;
    store?: Store<any>;
}

Created hook response If the parameter is returned, the default action is enabled examle: if you return store, auto add initialState you can override this behavior(if you don’t return the store)

Type declaration

  • Optional context?: SSRContext
  • Optional head?: HeadClient
  • Optional inserts?: {
        body?: string;
        bodyAttrs?: string;
        dependencies?: string[];
        headTags?: string;
        htmlAttrs?: string;
    }
    • Optional body?: string
    • Optional bodyAttrs?: string
    • Optional dependencies?: string[]
    • Optional headTags?: string
    • Optional htmlAttrs?: string
  • Optional router?: Router
  • Optional store?: Store<any>

Generated using TypeDoc