Git Product home page Git Product logo

Comments (2)

ferdis avatar ferdis commented on June 29, 2024

It's a state store. You're going to have a bad time trying to use redux as a document store, IMO. I think the examples use it as such as a matter of convenience.

Ideally one would use paginated responses from an endpoint, and update the state with that metadata. Saving all the records in the store(or simply in the browser) may quickly cause the app to become unresponsive while retrieving and modifying them.

I tend to use the state store as a pointer to locate the data that needs to be shown, for large datasets like product inventories, etc. You could store your current result set in a simplified state(id + name) for preloading, and even the current record if being modified, though.

from ngrx-store-localstorage.

btroncone avatar btroncone commented on June 29, 2024

@varghesep You can also pick and choose which slices of state you wish to sync. Maybe you have a large store but only need a small section to by synced with local storage, this library will aid you in this regard. 👍

from ngrx-store-localstorage.

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.