Capture Patches to Distribute Changes in App State with Immer produceWithPatches

Share this video with your friends

Send Tweet

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.