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) 230 B
import { ManagerOptions, SliceManager } from "./types"; export declare function createSliceManager<T extends Record<string, unknown>>({ initialState, name, watchers, reducers, extraReducers }: ManagerOptions<T>): SliceManager<T>;