useRoute
Describes@ebitex/content-sdk 1.xSee the changelog:@ebitex/content-sdk
useRoute():
RouteState
The route of the page being rendered: which pattern it was reached through and the value of each
parameter, for a renderer in a section of a parameterised page (/products/{key}).
const { params, notFound } = useRoute()It never throws: on a page at a fixed address, outside <Experience>, and against an older server
it returns { pattern: null, params: {} }. For typed parameters declare the route once with
defineRoute and call its useRoute().