UNPKG

rtk-slice-manager

Version:

Wrap over slice from @reduxjs/toolkit for automatic generation of actions and isolation of effect logic after changing the state of the fields

3 lines (2 loc) 234 B
import { CapitalizeHookHandlers, SliceManager } from './types'; export declare function useManager<T extends Record<string, unknown>, M extends SliceManager<T> = SliceManager<T>>({ actions, name }: M): [T, CapitalizeHookHandlers<T>];