routeAsync()
Routes to matching activities for the given path.
routeAsync(path: string): Promise<Activity | undefined>;
Notes
- This method matches the path against registered route patterns (most specific match wins). It computes the diff between the current and new active sets, deactivating removed activities and activating new ones.
- Activities that appear in both the old and new active sets are not deactivated or reactivated.
- Concurrent calls are safe, only the most recent route takes effect.
Parameters
- path — The path for which to activate matching activities.
Related
class ActivityRouter
A class that manages activation and deactivation of activities, with support for path-based routing.
