# Type alias LoaderFunction<Context>

LoaderFunction<Context>: ((args, handlerCtx?) => DataFunctionReturnValue) & {
hydrate?: boolean;
}

Route loader function signature

#### Type Parameters

- Context = any

#### Type declaration

- - (args, handlerCtx?): DataFunctionReturnValue

  - #### Parameters

    - args: LoaderFunctionArgs<Context>
    - `Optional` handlerCtx: unknown

    #### Returns DataFunctionReturnValue

#### Type declaration

- ##### `Optional` hydrate?: boolean

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:145