Course lesson

Capture Patches to Distribute Changes in App State with Immer produceWithPatches

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.

Duration
4 min
Access
Pro
Transcript
Available

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.