Skip to main content

hooks/useSCCachingManager

Functions

useSCCachingManager()

useSCCachingManager(): object

info

This custom hook manages cached data and the loading state.

Returns

object

MemberTypeValue
cachenumber[]cache.current
dataany[]-
emptyCache() => void-
isLoading(v) => boolean-
loadingany[]-
setDataDispatch<SetStateAction<any[]>>-
setLoading(id) => void-
setUnLoading(id) => void-
updateCache(ids) => void-

Source

packages/react-core/src/hooks/useSCCachingManager.ts:8