Skip to content
Myr

Update readme with note on recursive draft types.

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

authored by Kenneth Powers · committed by Kenneth Powers · parent 70ca1ff · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:readme.md+1 added-1 removed
309 unmodified lines
310311// `newState.x` cannot be modified here312```313314This ensures that the only place you can modify your state is in your produce callbacks.314This ensures that the only place you can modify your state is in your produce callbacks. It even works recursively and with `ReadonlyArray`s!315316## Immer on older JavaScript environments?317318By default `produce` tries to use proxies for optimal performance. However, on older JavaScript engines `Proxy` is not available. For example, when running Microsoft Internet Explorer or React Native on Android. In such cases Immer will fallback to an ES5 compatible implementation which works identical, but is a bit slower.
133 unmodified lines