Git Product home page Git Product logo

Comments (6)

rt2zz avatar rt2zz commented on May 18, 2024

I need to think about this. Initially the concept behind redux-persist was to simplify the persistence model by allowing reducer scoped blacklist/whitelist. That said I do not want to be overly prescriptive and I can definitely envision scenarios where more selective filtering is needed.

from redux-persist.

rt2zz avatar rt2zz commented on May 18, 2024

@Pajn I think this makes sense. what do you think about using the same api as redux-logger and having a predicate option?

from redux-persist.

drop-dan avatar drop-dan commented on May 18, 2024

+1

from redux-persist.

Pajn avatar Pajn commented on May 18, 2024

Sounds great.
If you want a PR I should have some time next week but otherwise just go on and implement it :)

from redux-persist.

rt2zz avatar rt2zz commented on May 18, 2024

regarding filtering actions it looks like we would need to add some extra wrapper around the subscribe since by default subscribe is action unaware.

If you do decide to work on this, it is best to develop against v3 branch as that is where the latest code is.

from redux-persist.

rt2zz avatar rt2zz commented on May 18, 2024

closing due to inactivity, feel free to PR!

Also note: because this would require non-trivial extension to subscribe to be action aware, I am wary to add this to the core redux-persist lib, perhaps there is a clever way to implement this as a dependent module.

from redux-persist.

Related Issues (20)

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.