@ohayojp.com/components
Version:
Common business components of ohayojp.
17 lines (16 loc) • 490 B
TypeScript
import { ReuseHookOnReuseInitType } from './reuse-tab.interfaces';
/**
* Triggered when the current route is in the reusing process, The values of `type` are:
*
* - `init` when routing process
* - `refresh` when refresh action via tab
*/
export interface OnReuseInit {
_onReuseInit(type?: ReuseHookOnReuseInitType): void;
}
/**
* Triggered when the current route allows reusing and leave route.
*/
export interface OnReuseDestroy {
_onReuseDestroy(): void;
}