Skip to content

Types: RouteLoader<TData>

ts
type RouteLoader<TData> = object;

A single loader: how to load its data, and how to prefetch it. Unlike a view, a loader always has a getter — a loader without one would have nothing to contribute.

Type Parameters

Type ParameterDefault typeDescription
TDataunknownWhat this loader's getter returns, carried so a route's data can be typed from it.

Properties

PropertyType
loadAnyFunction<TData>
prefetch?PrefetchConfig