1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Capture Patches to Distribute Changes in App State with Immer produceWithPatches

    reactReact
    ^16.8.6

    Since Immer records the changes we are trying to apply to our state, it can produce JSON patches. They describe the minimal difference between two versions of the state. This lesson introduces the “produceWithPatches” API.