UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

4 lines (3 loc) 288 B
import type { KeyType } from '../Cache'; import type { ShallowRef, Ref } from 'vue'; export default function useClientCache<CacheType>(prefix: string, keyPath: Ref<KeyType[]>, cacheFn: () => CacheType, onCacheRemove?: (cache: CacheType, fromHMR: boolean) => void): ShallowRef<CacheType>;