Skip to content

RouteState

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

What useRoute() returns.

context: string | undefined

The route context tag the page’s parameter carries, when it has one.


notFound: () => void

Says that the value in the address names nothing (a product that does not exist, say). The enclosing <Experience> then renders its notFound content in place of the page and calls onNotFound. Content answers every value that fits the pattern with a page; whether the value is real is for the presentation to decide. Resets when the address changes. Does nothing outside <Experience>.

void


params: Record<string, string>

The value each parameter took in the requested address, decoded. Empty when pattern is null.


pattern: string | null

The pattern the page was reached through (/products/{key}, in the site’s own URL space), or null for a page at a fixed address, outside <Experience>, and against a server that does not send one.