UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

20 lines (19 loc) 520 B
/// <reference types="react" /> /** :::info This custom hook manages cached data and the loading state. ::: */ export default function useSCCachingManager(): { cache: number[]; updateCache: (ids: number[]) => void; emptyCache: () => void; data: any[]; setData: import("react").Dispatch<import("react").SetStateAction<any[]>>; loading: any[]; setLoading: (id: number) => void; setUnLoading: (id: number) => void; isLoading: (v: { id: number; } | number) => boolean; };