Skip to content
Myr

docs: update Hermes support proxy 👏 (#801)

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

new Hermes which is available on React Native 0.64 support proxy.

authored by Ehsan sarshar · committed by GitHub · parent 6555173 · 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:website/docs/installation.mdx+1 added-1 removed
75 unmodified lines
76```7778## Immer on older JavaScript environments?7980By 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 (if < v0.59 or when using the Hermes engine) on Android. In such cases, Immer will fallback to an ES5 compatible implementation which works identically, but is a bit slower.80By 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 (if < v0.59 or when using the Hermes engine on React Native < 0.64) on Android. In such cases, Immer will fallback to an ES5 compatible implementation which works identically, but is a bit slower.8182Since version 6, support for the fallback implementation has to be explicitly enabled by calling `enableES5()`.