Compress the Immer Patch History by Replaying Patches on a setInterval

Share this video with your friends

Send Tweet

Many cool things can be done with immutable data and patches. In this lesson we will highlight one fun trick: Compressing patches by replaying and re-recording them so that we end up with the least amount of patches to end up in the correct final state.