Skip to content

@serenity-is/corelib / HandleRouteEvent

Interface: HandleRouteEvent

Defined in: src/compat/router.ts:8

Event payload for the handleroute event dispatched by ClassicRouter. Extends the native Event with parsed hash-route information.

Extends

  • Event

Properties

index

index: number

Defined in: src/compat/router.ts:14

Zero-based index of route within parts.


isInitial

isInitial: boolean

Defined in: src/compat/router.ts:16

true during the initial few resolves after page load; may affect handler behavior.


parts

parts: string[]

Defined in: src/compat/router.ts:12

All route parts split by "/+/" from the full hash.


route

route: string

Defined in: src/compat/router.ts:10

The route segment being handled for the current index (e.g., "new" or "edit/5").