RouteState
Describes@ebitex/content-sdk 1.xSee the changelog:@ebitex/content-sdk
What useRoute() returns.
Properties
Section titled “Properties”context
Section titled “context”context:
string|undefined
The route context tag the page’s parameter carries, when it has one.
notFound
Section titled “notFound”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>.
Returns
Section titled “Returns”void
params
Section titled “params”params:
Record<string,string>
The value each parameter took in the requested address, decoded. Empty when pattern is null.
pattern
Section titled “pattern”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.