Redux Toolkit Optimistic
https://www.npmjs.com/package/redux-toolkit-optimistic
Simple helper library for use with Redux Toolkit. MUST be used in conjunction with createEntityAdapter as well as createSlice OR createReducer.
- Allows for updateOne or updateMany optimistic updates.
- Works especially well the pending and rejected states of createAsyncThunk.
Installation
npm install -S redux-toolkit-optimistic
yarn add redux-toolkit-optimistic
Usage
Example Redux code:
;; const myFunction = ; const myAdapter = ;const mySlice = ; const reducer = spreadsSlicereducer;;
And usage in React:
; ;
License
MIT