Flarum (2.x)
    Preparing search index...

    Class UserPageResolver<Attrs, RouteArgs>

    Generates a route resolver for a given component.

    In addition to regular route resolver functionality:

    • It provide the current route name as an attr
    • It sets a key on the component so a rerender will be triggered on route change.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    component:
        | NewComponent<UserPage<Attrs, undefined>>
        | AsyncNewComponent<UserPage<Attrs, undefined>>
    routeName: string

    Methods