UNPKG

@gpa-gemstone/common-pages

Version:
11 lines (10 loc) 568 B
import ReadOnlyGenericSlice from './ReadOnlyGenericSlice'; /** * Custom hook to initialize data fetching for a read-only generic slice. * @param slice - The read-only generic slice instance. * @param dispatch - The Redux dispatch function. * @param useSelector - The Redux useSelector hook. * @param parentID - The optional parent ID for the data fetch. * @returns The current fetch status. */ export declare function useInitializeWithFetch<T>(slice: ReadOnlyGenericSlice<T>, dispatch: (action: any) => void, useSelector: any, parentID?: string | number): any;