Skip to content

Commit

Permalink
BREAKING CHANGE: added migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Feb 2, 2019
1 parent 9c498e1 commit b79bb97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,12 @@ Most important observation:
- Generating patches doesn't significantly slow immer down
- The ES5 fallback implementation is roughly twice as slow as the proxy implementation, in some cases worse.

## Migration

**Immer 1.\* -> 2.0**

Make sure you don't return any promises as state, because `produce` will actually invoke the promise and wait until it settles.

## FAQ

_(for those who skimmed the above instead of actually reading)_
Expand Down

0 comments on commit b79bb97

Please sign in to comment.