UNPKG

kxd-react-route-cache

Version:

change color from react-route-cache for my project

27 lines (26 loc) 892 B
import React, { ReactNode, FC } from 'react'; import { TabsItem, CachesItem, LifeCircle } from '../types'; type LifeCircles = { [key: string]: Array<LifeCircle>; }; interface KeepAliveContext { activateds: LifeCircles; setActivateds?: (activateds: LifeCircles) => void; deactivateds: LifeCircles; setDeactivateds?: (deactivateds: LifeCircles) => void; active?: string; setActive?: (active: string) => void; tabs?: TabsItem[]; setTabs?: (tabs: TabsItem[]) => void; caches?: CachesItem[]; setCaches?: (caches: CachesItem[]) => void; } declare const KeepAliveContext: React.Context<KeepAliveContext>; interface KeepAliveScopeProps { mode?: 'path' | 'search'; nameKey?: string; children: ReactNode; } export declare const KeepAliveScope: FC<KeepAliveScopeProps>; export declare const useKeepAliveContext: () => KeepAliveContext; export {};