传递给 loader 函数的参数

interface LoaderFunctionArgs<Context> {
    context?: Context;
    params: Params<string>;
    request: Request;
}

类型参数

  • Context = any

继承关系

  • DataFunctionArgs<Context>
    • LoaderFunctionArgs

属性

context?: Context
params: Params<string>
request: Request