@654356282/react-keepalive
Version:
React Keepalive Component
13 lines (12 loc) • 392 B
TypeScript
/// <reference types="react" />
import type { KeepAliveComponentInfo, Key } from './types';
export interface KeepAliveContext {
store: Map<Key, KeepAliveComponentInfo>;
activedKey: null | Key;
deferActivedKey: Key | null;
controller: {
drop: (key: Key) => void;
};
}
declare const Context: import("react").Context<KeepAliveContext | null>;
export default Context;