UNPKG

@chanjs/keepalive

Version:

Realize the keepalive function of react.

13 lines (12 loc) 432 B
import React from 'react'; import type { FC } from 'react'; export declare const KeepAliveContext: React.Context<KeepAliveLayoutProps>; export declare function useKeepOutlets(): JSX.Element; interface KeepAliveLayoutProps { keepalive: any[]; keepElements?: any; delCache?: (path: string) => void; children?: any; } declare const KeepAliveLayout: FC<KeepAliveLayoutProps>; export default KeepAliveLayout;