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.
Type Parameters
Section titled “Type Parameters”TContext
Section titled “TContext”TContext extends string = string
TData = unknown
TParams
Section titled “TParams”TParams = never
Properties
Section titled “Properties”context
Section titled “context”
readonlycontext:TContext
The tag the page’s route must carry for this loader to run.
readonlyload: (params,options) =>Promise<NotFound|TData>
Parameters
Section titled “Parameters”params
Section titled “params”TParams
options
Section titled “options”Returns
Section titled “Returns”Promise<NotFound | TData>