Code Monkey home page Code Monkey logo

Comments (5)

m-j-g avatar m-j-g commented on June 10, 2024 1

If you set the "isLive" parameter to true it uses snapshots() instead of get(). snapshots() loads from cache by default correct? Only triggers reads if there has been an update?

from paginate_firestore.

vedartm avatar vedartm commented on June 10, 2024

As @m-j-g mentioned, you can set isLive to true which will use snapshots which in turn helps with caching.

from paginate_firestore.

vedartm avatar vedartm commented on June 10, 2024

Thanks for using the package. Feel free to reopen if you face any similar issues.

from paginate_firestore.

fazaza avatar fazaza commented on June 10, 2024

Thanks @excogitatr @m-j-g for the answer, I know that snapshots loads from cache by default, but when offline more than 30 minutes the snapshots will read data again from server, I'm fine to close issue for now

from paginate_firestore.

p4-k4 avatar p4-k4 commented on June 10, 2024

Firstly, thanks for putting this package together, literally saved me!

Regarding this issue, how feasible is it to allow users to set a timeout on whether or not we're fetching from the cache or server?

In the case of data that won't be stale for a few days, we could drastically reduce document reads but this would obviously be quite project specific.

Thanks

from paginate_firestore.

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.