Skip to main content

Class: PageHandler

@ima/core.PageHandler

Hierarchy

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

NameTypeDescription
managedPagenull | ManagedPageThe currently managed page.
previousManagedPageManagedPageThe data of the page that was previously managed.
actionPageActionAn 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

NameTypeDescription
managedPagenull | ManagedPageThe currently managed page - soon-to-be previously managed page.
nextManagedPageManagedPageThe data of the page that's about to be managed.
actionPageActionAn 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

Defined in

packages/core/src/page/handler/PageHandler.ts:7