Module: hooks/useSCCachingManager
Functions
useSCCachingManager
▸ useSCCachingManager(): Object
info
This custom hook manages cached data and the loading state.
Returns
Object
Name | Type |
---|---|
cache | number [] |
data | any [] |
emptyCache | () => void |
isLoading | (obj : { id : number }) => boolean |
loading | number [] |
setData | Dispatch <SetStateAction <any []>> |
setLoading | Dispatch <SetStateAction <number []>> |
updateCache | (ids : number []) => void |