fromGitHub
4 hours agoGitHub - mutativejs/travels: A fast, framework-agnostic undo/redo core powered by Mutative patches
Efficient History Storage with JSON Patches: Instead of storing full state snapshots for each history entry, travels uses JSON Patch (RFC 6902) to store only the differences between states. This dramatically reduces memory usage, especially for large state objects with small changes. For example, changing a single field in a 1MB object only stores a few bytes in history. High-Performance Immutable Updates: Mutative is 10x faster than Immer and provides a mutation-based API for updating immutable data structures.
React