We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
const { produce, enableMapSet } = require("immer"); enableMapSet(); const map = new Map(); const newMap = produce(map, draft => { draft.clear(); }); map === newMap
false
true
setUseProxies(true)
setUseProxies(false)
The text was updated successfully, but these errors were encountered:
Fix immerjs#680: Clearing empty Set&Map should be noop
b72a75d
c0bbc7d
33a305b
🎉 This issue has been resolved in version 7.0.10 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
🐛 Bug Report
To Reproduce
Observed behavior
false
Expected behavior
true
Environment
setUseProxies(true)
setUseProxies(false)
(ES5 only)The text was updated successfully, but these errors were encountered: