Giter Site home page Giter Site logo

Comments (4)

zalmoxisus avatar zalmoxisus commented on August 15, 2024

Does it mean that the rehydration key will not match the reducer key anymore? It is not a big problem I guess, we may just catch them by payload parameters. I'd opt for less noise.

from redux-persist.

rt2zz avatar rt2zz commented on August 15, 2024

@zalmoxisus yes, there would no longer be a reducer key on the action.

By less noise, do you mean you would prefer it was consolidated to one action?

from redux-persist.

zalmoxisus avatar zalmoxisus commented on August 15, 2024

Yes, having a lot of reducers could generate a lot of rehydate actions in the devtool, making it difficult for debuging.

Also REHYDRATE_COMPLETE is a bit ambiguous as it is invoked only after the initial rehydratations. If we use something like persist-crosstab, one would expect to have REHYDRATE_COMPLETE when new rehydratations occur as well.

Though I agree that dealing with nested data can be error prone in custom rehydration handlers.

from redux-persist.

rt2zz avatar rt2zz commented on August 15, 2024

Will most likely make the switch in 2.0. This creates better symmetry with the getStoredState api and reduces log noise.

Will deal with the "debugability" question with a debug option.

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.