UNPKG

redux-toolkit-state

Version:

🚀 A powerful & lightweight React hook library that simplifies Redux state management with a familiar useState-like API. Built on Redux Toolkit for optimal performance.

21 lines • 795 B
import { useReduxStateReturn } from '../impl/reduxStateImpl'; /** * @description declaration for useReduxState hook * * Custom hook for accessing or creating global state * @param key - Unique identifier for the global state * @param initialValue - Initial value for the state (optional) * @returns [value, setValue, { update, reset }] */ export declare function useReduxState<T>(key: string, initialValue: T): useReduxStateReturn<T>; /** * @description declaration for useReduxState hook * Custom hook for accessing existing global state without initial value * * @see useReduxStateExisting * * @param key * @returns [value, setValue, { update, reset }] */ export declare function useReduxState<T>(key: string): useReduxStateReturn<T>; //# sourceMappingURL=useReduxState.d.ts.map