react-next-keep-alive
Version:
Module for caching views in next.js
13 lines (12 loc) • 326 B
TypeScript
/**
* Hook for handling mount event
* @param name
* @param effect
*/
export declare const useKeepAliveMountEffect: (name: string, effect: Function) => void;
/**
* Hook for handling unmount event
* @param name
* @param effect
*/
export declare const useKeepAliveUnmountEffect: (name: string, effect: Function) => void;