rtk-expanded-slice

1.0.1 • Public • Published

Redux Toolkit Expanded Slice

This project takes the createSlice function in Redux Toolkit and uses the initial state to generate selectors and setters (action) functions for every field in the state. The vast majority of boilerplate written in Redux seems to be setters and getters for fields in Redux where you just store it and read it without much business logic.

Using the expanded create slice function

The function works just as described in redux toolkit except it creates the additional selectors and setter actions.

See redux toolkit api

Readme

Keywords

none

Package Sidebar

Install

npm i rtk-expanded-slice

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

10.4 kB

Total Files

5

Last publish

Collaborators

  • joshuasharris