extra credit Search 85,062 technologies ⌘K Download for Mac

Immer

Category
Frameworks and libraries
Docs outline
14 sections

Official docs outline

immerjs.github.io
  1. Introduction

    Immer's copy-on-write approach: write mutable-looking code that produces immutable results.

  2. produce

    How produce and draft proxies work, and the rules for recipes.

  3. Curried produce

    Producing reducers and reusable updaters with curried produce.

  4. Update patterns

    Idiomatic ways to update arrays, objects, Maps and Sets.

  5. Return values

    Returning new values from recipes versus mutating drafts, and nothing.

  6. Pitfalls

    Common mistakes such as reassigning the draft, identity checks and non-draftable values.

  7. Patches

    Generating and applying JSON patches for undo/redo and sync.

  8. Auto freezing

    Automatic deep freezing of produced state and how to configure it.

  9. Classes

    Making class instances draftable with immerable.

  10. Map and Set

    Enabling and using Map and Set support.

  11. current and original

    Inspecting draft state with current and original.

  12. Using with React and use-immer

    Using Immer with setState, useState and useReducer.

  13. Performance

    Performance characteristics and optimization tips.

  14. TypeScript

    Typing drafts and produced results.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 113
↑↓ move ↵ open