Coder Social home page Coder Social logo

redux-deep-diff's People

Contributors

dependabot[bot] avatar rezach avatar wwilsman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redux-deep-diff's Issues

Library use case and documentation?

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?

Usage with freezing libraries

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.

Support arrays of objects as state

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 ๐Ÿ˜„.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.