Git Product home page Git Product logo

Comments (3)

rt2zz avatar rt2zz commented on May 21, 2024

yes, and the code for this would be trivial. My hesitation is that I have yet to see an app that would whitelist more than it would blacklist.

Have you run into this situation? can you explain more about your use case?

from redux-persist.

grabbou avatar grabbou commented on May 21, 2024

Well, in my case, the React app data depends on the user location meaning that even a small change of location requires full data reload (location change loads places, there are pubs in places etc.) hence there's no point in persisting the whole tree since in 99% it will need to reload anyway. The only thing that needs to be serialised at this point is the user profile and its token.

Anyway, it might be just a matter of personal preference, but usually I prefer whitelisting than blacklisting to be explicit about the serialisation.

from redux-persist.

rt2zz avatar rt2zz commented on May 21, 2024

Makes sense. I just added whitelist to to 0.5.8

Let me know how that goes

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.