Skip to content
Myr

fix: share internal symbols between immer installations

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

The `nothing` symbol is still not portable across installations, since it never escapes any producer that returns it. The only reason this could be an issue is if an Immer-using library transparently wraps a user's function and asks them to install their own copy of Immer if they want to return `nothing` (in that case, the library should instead re-export `nothing` for its users). Fixes #322

authored by Alec Larson · committed by Alec Larson · parent fad74d3 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/common.js+2 added-2 removed