wwilsman / redux-deep-diff Goto Github PK
View Code? Open in Web Editor NEWHigher order reducer to deep diff redux states
License: MIT License
Higher order reducer to deep diff redux states
License: MIT License
Hi. Skimming the source code for this lib, it looks like it deals with undo/redo, but I can't tell exactly how it's intended to be used. Could you add some documentation and explain the use cases and how to use it?
This might be a stupid question but how do you make this library works with tools like immer or ngrx-store-freeze that freeze the state after reducers have been called. Cause redux-deep-diff is a wrapper around real reducers. Thus when it tries to instrument the state, everything is frozen.
Nobody can install this library because main
in package.json
points to a built file and that built file doesn't exists in the NPM package. ๐ข
Hi Wil,
You merged PR #3 but never pushed a v0.4.8 to npm.
So the PR is not on npm.
Any reason for that?
Can this library support arrays as a state? ie.
[
{
name: "A",
height: 4,
data: {
// ...
}
},
{
name: "B",
height: 8
data: {
// ...
}
},
]
You mention in the docs that
the
deep-diff
library calculates structural changes between two javascript objects. As such, your state must be a diffable object.
Instead of just diffing each side, could you iterate over all elements in an array and store the diffs of that?
I found your repo looking at this list, and realized that I'm essentially building your library here and figured it doesn't hurt to ask ๐.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.