Class: PageHandler
@ima/core.PageHandler
Hierarchy
PageHandler
Constructors
constructor
• new PageHandler()
Methods
destroy
▸ destroy(): void
Finalization callback, called when the page manager is being discarded. This usually happens when the page is hot-reloaded at the client side.
Returns
void
Defined in
packages/core/src/page/handler/PageHandler.ts:50
handlePostManagedState
▸ handlePostManagedState(managedPage
, previousManagedPage
, action
): void
Called after a PageManager finishes transition from previous page to a new one.
Parameters
Name | Type | Description |
---|---|---|
managedPage | null | ManagedPage | The currently managed page. |
previousManagedPage | ManagedPage | The data of the page that was previously managed. |
action | PageAction | An action object describing what triggered the routing. |
Returns
void
Defined in
packages/core/src/page/handler/PageHandler.ts:38
handlePreManagedState
▸ handlePreManagedState(managedPage
, nextManagedPage
, action
): void
Called before a PageManager starts to transition from previous page to a new one.
Parameters
Name | Type | Description |
---|---|---|
managedPage | null | ManagedPage | The currently managed page - soon-to-be previously managed page. |
nextManagedPage | ManagedPage | The data of the page that's about to be managed. |
action | PageAction | An action object describing what triggered the routing. |
Returns
void
Defined in
packages/core/src/page/handler/PageHandler.ts:21
init
▸ init(): void
Initializes the page handler.
Returns
void