Skip to content
Myr

docs: add migration guide for v3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alec Larson · committed by Alec Larson · parent 4191969 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:readme.md+3 added-1 removed
735 unmodified lines
736## Migration737738**Immer 2.\* -> 3.0**739740TODO740In your producers, make sure you're not treating `this` as the draft. (see here: https://github.com/immerjs/immer/issues/308)741742Upgrade to `typescript@^3.4` if you're a TypeScript user.743744**Immer 1.\* -> 2.0**745746Make sure you don't return any promises as state, because `produce` will actually invoke the promise and wait until it settles.747
43 unmodified lines