Skip to content

RouteDataDefinition

Describes@ebitex/content-sdk 1.xSee the changelog:@ebitex/content-sdk

A loader bound to a route context tag. Made by defineRouteData; pass it in the list given to <Experience routeData> and read it with useRouteData.

TContext extends string = string

TData = unknown

TParams = never

readonly context: TContext

The tag the page’s route must carry for this loader to run.


readonly load: (params, options) => Promise<NotFound | TData>

TParams

RouteDataLoadOptions

Promise<NotFound | TData>