Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
immutable-js
Immutable persistent data collections for Javascript which increase efficiency and simplicity.
if you want to write immutable code https://ramdajs.com/ is a great library
However, the way Immer uses that phrase seems to be different than how Immutable.js uses that phrase: https://immutable-js.github.io/immutable-js/ , https://medium.com/@dtinth/immutable-js-persistent-data-structures-and-structural-sharing-6d163fbd73d2. It specifically points to the use of specialized data structures like "hash mapped tries" as a mechanism to reuse existing references. Immer definitely doesn't use any of those.
Yes, Immer's docs say it uses "structural sharing": https://immerjs.github.io/immer/ . Specifically, it just leaves existing references as-is if they don't need to be updated.