sveltefire
sveltefire copied to clipboard
Add Common Use-case Examples
The documentation should be expanded with common UI patterns.
- User Auth Methods
- Collection pagination and queries
- Common Firestore join patterns
Hey, nice work! Could you add more examples for the the following usecases:
Pagination with appending instead of exchanging an already loaded list. This would be very useful to to build a "load more" or infinite scrolling solution, rather than a page-switch.
Stores to keep already loaded items and don't load anything again on route-change. This would be extremely helpful if you work with a lot of data and if pagination was already fired multiple times. It also decreases the amount of requests you make to Firebase (since it causes costs on scale). Your store example code is really minimal and hard to understand without a "real" example.
Thanks a lot!
Hey, nice work! Could you add more examples for the the following usecases:
Pagination with appending instead of exchanging an already loaded list. This would be very useful to to build a "load more" or infinite scrolling solution, rather than a page-switch.
Stores to keep already loaded items and don't load anything again on route-change. This would be extremely helpful if you work with a lot of data and if pagination was already fired multiple times. It also decreases the amount of requests you make to Firebase (since it causes costs on scale). Your store example code is really minimal and hard to understand without a "real" example.
Thanks a lot!
so agree with you
I'm also interested in getting examples for this. I'm trying to send the data from firestore to an object that can be accessed from all of my component so that you only need to read the data from firebase once. Anyone has an idea how this can be done?