Comments (5)
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.
As @m-j-g mentioned, you can set isLive
to true which will use snapshots which in turn helps with caching.
from paginate_firestore.
Thanks for using the package. Feel free to reopen if you face any similar issues.
from paginate_firestore.
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.
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)
- after "extendBodyBehindAppBar: true in Scaffold" The view show under appbar
- How to implement this package so that it loads limited number of items only on scroll till end. Currently it just loads till end of the full list
- Remove height and singlechildscrollview from onEmpty Widget HOT 4
- Add widget to header to working HOT 2
- how to use separator conditionally because i want to load Ad Widget randomly. I think separator showed have to be separatorBuilder so that we can access context and index easily.
- SetState doesn't work on the paginate firestore HOT 4
- Unexpectedly Closes in new version of flutter
- Feature Request: Using custom Scrolling Views HOT 1
- Lot of Reads in firestore when isLive set to true, Version 1.0.3
- How to write conditions in paginate forestore
- Itemsperpage = 2 dont work
- PaginateFirestore dont update after 10 items
- Data Update can work only in itemsperpage HOT 1
- OnEmpty does not work good HOT 2
- Define maximum number of items or number of pages HOT 1
- Limit total items to be loaded HOT 1
- Not compatible with cloud_firestore's latest version HOT 6
- Going to switch to a different solution until this package gets more attention HOT 2
- Live data makes listview jump on it own with new data added
- Not compatible with the latest version of cloud firestore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paginate_firestore.