Skip to content

Commit

Permalink
Add mention of being a fork of redux-immutable-state-invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
msutkowski committed Feb 21, 2020
1 parent 3a9e5a7 commit 603612d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api/getDefaultMiddleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ One of the goals of Redux Toolkit is to provide opinionated defaults and prevent
`getDefaultMiddleware` includes some middleware that are added **in development builds of your app only** to
provide runtime checks for two common issues:

- [`immutable-state-invariant`](./otherExports.md#createimmutablestateinvariantmiddleware): - deeply compares
- [`immutable-state-invariant`](./otherExports.md#createimmutablestateinvariantmiddleware): deeply compares
state values for mutations. It can detect mutations in reducers during a dispatch, and also mutations that occur between
dispatches (such as in a component or a selector). When a mutation is detected, it will throw an error and indicate the key
path for where the mutated value was detected in the state tree.
path for where the mutated value was detected in the state tree.

Forked from [`redux-immutable-state-invariant`](https://github.com/leoasis/redux-immutable-state-invariant)
- [`serializable-state-invariant-middleware`](./otherExports.md#createserializablestateinvariantmiddleware): a custom middleware created specifically for use in Redux Toolkit. Similar in
concept to `immutable-state-invariant`, but deeply checks your state tree and your actions for non-serializable values
such as functions, Promises, Symbols, and other non-plain-JS-data values. When a non-serializable value is detected, a
Expand Down

0 comments on commit 603612d

Please sign in to comment.