Remove optional parts of a discussion's slug to keep the substring that bijectively maps to a discussion object. By default this just extracts the numerical ID from the slug. If a custom discussion slugging driver is used, this may need to be overriden.
When a route change results in a changed key, a full page rerender occurs. This method can be overriden in subclasses to prevent rerenders on some route changes.
A method which selects which component to render based on conditional logic.
Returns the component class, and not a Vnode or JSX expression.
A function which renders the provided component.
If not specified, the route will default to rendering the component on its own, inside of a fragment.
Returns a Mithril Vnode or other children.
Generated using TypeDoc version 0.22.10
A custom route resolver for DiscussionPage that generates the same key to all posts on the same discussion. It triggers a scroll when going from one post to another in the same discussion.