~/talk

Immer, Immutability and the Wonderful World of Proxies

Talkat JSNation 2019 · 2019-06-05..06-08· [javascript, frontend-architecture]
slides:none on file

Demonstrates Immer as a tiny library that creates a draft via JavaScript proxies so ordinary mutation yields an immutable result with structural sharing, claiming Redux reducers become twice as short. Shows implementation details: produce(state, recipe) wraps the root in proxies, tracks reads/writes, and materializes a minimal next state. Builds a proxy-based REST client that generates methods and lazy‑fetches URL strings into promises; works in live tests but warns proxies are undetectable, readily abused, and risky in application code.

AI-written summary · about

  1. 0:00Introduction
  2. 3:03The spread hell
  3. 3:50Better communication
  4. 4:48A new abstraction
  5. 9:36Immer in a nutshell
  6. 10:11Applications
  7. 10:44Proxies
  8. 12:37Traps
  9. 13:06undetectable
  10. 13:41Star Wars API
  11. 14:26Characters API
  12. 15:16Swagger
  13. 15:42Using proxies
  14. 18:50Fetching URLs
  15. 19:12Trap URLs
  16. 22:39Storage API
  17. 22:50Emma
  18. 24:56Graphs
  19. 26:21True Singletons
  20. 27:20Change Detection
  21. 27:37National
  22. 28:45Trap
  23. 30:07Thank you
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.