Type alias Hook

Hook: ((params) => HookResponse | Promise<HookResponse>)

Type declaration

    • (params): HookResponse | Promise<HookResponse>
    • Parameters

      • params: {
            app: App;
            context?: Context;
            initialState: Record<string, any>;
            isClient: boolean;
            url: URL | Location;
            [key: string]: any;
        }
        • [key: string]: any
        • app: App
        • Optional context?: Context
        • initialState: Record<string, any>
        • isClient: boolean
        • url: URL | Location

      Returns HookResponse | Promise<HookResponse>

Generated using TypeDoc