Immer, Immutability and the Wonderful World of Proxies
summary
Immer is presented as a library that uses JavaScript Proxies to create and maintain a mutable-looking shadow tree (a draft) so code can use normal JS mutation APIs while producing an immutable next state. The talk shows browser demos and source, claims reducers can be about half as big by removing manual copy/update code, and notes caveats: it requires Proxy support and has runtime observable/behavioral traps in environments without Proxies.
AI-written summary · about
chapters (7)
- 0:00Welcome
- 1:33JavaScript Proxies
- 8:10Immer and immutable state
- 12:46Immer with Proxies
- 17:51Proxy use cases
- 23:00Advanced Proxy techniques
- 27:49Q&A
related talks
31mImmer, Immutability and the Wonderful World of Proxies
19mImmutability is Changing: From Immutable.js to Immer
45mJavaScript Immutability - "Don't Go Changing"
26mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
52mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
29mThe Immutable Way: A Guide to Cleaner, More Predictable JavaScript
26mImmutability, interactivity & JavaScript
29mBuilding a Time Machine with ES6 Proxies
