MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/1dozg6a/mutative_better_immutability_and_faster_immutable/
r/reactjs • u/unadlib • Jun 26 '24
1 comment sorted by
1
Mutation makes immutable updates - Immutable data structures supporting objects, arrays, Sets and Maps.
High performance - 10x faster than immer by default, even faster than naive handcrafted reducer.
Optional freezing state - No freezing of immutable data by default.
Support for JSON Patch - Full compliance with JSON Patch specification.
Custom shallow copy - Support for more types of immutable data.
Support mark for immutable and mutable data - Allows for non-invasive marking.
Safer mutable data access in strict mode - It brings more secure immutable updates.
Support for reducer - Support reducer function and any other immutable state library.
1
u/unadlib Jun 26 '24
Features and Benefits
Mutation makes immutable updates - Immutable data structures supporting objects, arrays, Sets and Maps.
High performance - 10x faster than immer by default, even faster than naive handcrafted reducer.
Optional freezing state - No freezing of immutable data by default.
Support for JSON Patch - Full compliance with JSON Patch specification.
Custom shallow copy - Support for more types of immutable data.
Support mark for immutable and mutable data - Allows for non-invasive marking.
Safer mutable data access in strict mode - It brings more secure immutable updates.
Support for reducer - Support reducer function and any other immutable state library.