Firestore Pagination - It Just Got Easier

  Рет қаралды 59,326

Fireship

Fireship

Күн бұрын

Пікірлер: 78
@Grummpyro
@Grummpyro 5 жыл бұрын
Wish u had released this a week ago, I recently finished pagination for my site. Thank you for the videos, they are very helpful without your video my life would much more difficult.
@Fireship
@Fireship 5 жыл бұрын
Dang, I planed on this video last week but didn't finish it in time.
@omargamal2147
@omargamal2147 5 жыл бұрын
YES MORE SVELTE 🔥 This channel is the best , thanks Jeff .
@AurelHavetta
@AurelHavetta 5 жыл бұрын
Yes, please more of svelte, we are migrating to Svelte, cause our team saw your videos about it.
@patrickmullot73
@patrickmullot73 5 жыл бұрын
'startAfter' is great. 'after' is also quite powerful but be careful because you get charged for all the reads, not just the ones you actually get. For instance, if you write "after(1000).limit(1)" , you get charged by 1.000 + 1 reads, not just 1.
@ebonilha
@ebonilha 4 жыл бұрын
Well, offset-based pagination will always re-read all previous documents. As Firestore bills per-read, that's a dangerous way to go. Cursor-based pagination would be preferred
@tech3425
@tech3425 2 жыл бұрын
Really needed this, thanks! You're the one who really sold me on firebase
@ptone805
@ptone805 4 жыл бұрын
Very interested to see how you are making the most of svelte without the benefits of typescript
@headphonejackd
@headphonejackd 4 жыл бұрын
Definitely interested in more videos on the most promising framework from the best front end KZbinr! A deep dive on svelte would be awesome.
@duanehodges3146
@duanehodges3146 4 жыл бұрын
Great tutorial as usual. Quick question...when you say we have to supply the document as a reference point when we're paginating are we supplying the entire document or just the document ID?
@guilhermealberto7209
@guilhermealberto7209 5 ай бұрын
A starting point was already set (by another call to `startAt`, `startAfter`, or `equalTo`)
@bensonmwaura9494
@bensonmwaura9494 5 жыл бұрын
You've pushed some stellar content throughout the year! Always a channel to look forward to 🔥. Kindly consider demonstrating how to deploy a Svelte/Sapper on Firebase Hosting with Skeleton Screen implementation for minimal UI as an alternative to spinning loaders. Thanks!😎
@murunwascengy2762
@murunwascengy2762 5 жыл бұрын
Svelte Svelte Svelte Svelte Svelte Svelte 🔥🔥 every day any day
@escoladejesusnafreguesiado3319
@escoladejesusnafreguesiado3319 2 жыл бұрын
Very Nice, How about jump page? if i'm on page 3, and want to go to page 6. How do i do that?
@ProgrammingwithPeter
@ProgrammingwithPeter 5 жыл бұрын
You make it look easy! But yes, their sdk is great and easy to use!
@dma6967
@dma6967 5 жыл бұрын
Please, can you explain how to do Firestore pagination in Flutter?!
@Fireship
@Fireship 5 жыл бұрын
The logic and process is the same, just a slightly different API for making queries dart.
@IssaLafi
@IssaLafi 5 жыл бұрын
After a long time of learning angular you change to svelte 🤨 come on
@hojdog
@hojdog 5 жыл бұрын
After a long time of learning angular you should be able to convert. Why should he code examples in the most difficult to read, least popular framework?
@abdoufma
@abdoufma 5 жыл бұрын
He did ONE video using svelte as an example because he thinks it's cool, and that's how people react? Jeez! A man is allowed to be interested in many technologies, you know?
@Fireship
@Fireship 5 жыл бұрын
Nothing against Angular, I still use it on Fireship.io. Svelte just provides some really nice UI patterns for Firebase that I can't ignore.
@mycloudvip
@mycloudvip 4 жыл бұрын
I've got to CONGRATULATE you for your content! I signed up to a course on React Native with you a while ago. Where can I get the most content at the best price? Is basic support included while taking the courses? Stay SAFE
@nicolapigozzo
@nicolapigozzo 4 жыл бұрын
Is it possible to add the pages numbers with this method??
@dependersethi1345
@dependersethi1345 5 жыл бұрын
♥️ as always
@Fireship
@Fireship 5 жыл бұрын
Thank you!
@troythompson2
@troythompson2 5 жыл бұрын
Was just about to do this.. CLUTCH
@Alcaatraz01
@Alcaatraz01 5 жыл бұрын
Would you say that this is why reddit moved away from paginated results for subreddits to infinite scroll? Obviously they managed to guarantee the same posts for a given page number by keeping track of the first and last ids but that meant you could only see the newest posts by going to the home page for the subreddit. Do you think that is an acceptable solution or confusing for the user? I recently had to implement that legacy reddit pagination system but wondered if it's not the best approach. Maybe combining the legacy reddit pagination with the twitter style notification at the top of the list of new posts being available... any thoughts?
@Alcaatraz01
@Alcaatraz01 5 жыл бұрын
Also thanks for the awesome video again!
@BeastinlosersHD
@BeastinlosersHD 5 жыл бұрын
Infinite pagination is good for keeping users hooked! Maybe you can have two tabs, one for new, with infinite scroll of most recent, similar to most websites. However, I am really intrigued by the UI choice of having two sections, one with new, constantly updating feed at the top, or side, and another section that has the reddit style + pagination. Just consider them two different websites/widgets and put them together on one page. Is this for a work project or a hobby project, I'm curious how it would come out!
@Alcaatraz01
@Alcaatraz01 5 жыл бұрын
@@BeastinlosersHD Hi there! It's a hobby project for a game I play that basically aggregates posts from a subreddit and the most popular discord servers (for this game's community) in realtime. I basically add much requested features on top of the aggregation such as filtering and the ability to create posts directly in the app. So basically with multiple highly active sources of incoming posts I had to settle on some sort of pagination solution. Infinite scroll is cool but I'm a huge fanatic of state management so being able to restore the state of the app as close to exact on a refresh is crucial. Infinite scroll would make that awkward in my mind... you'd sort of have to force the scroll to render down to where the user left off.
@aytunch
@aytunch 4 жыл бұрын
Hi this limitToLast is great but I can not find it in Cloud Functions. Is it only available in client libraries?
@sepehrazizi1491
@sepehrazizi1491 5 жыл бұрын
does svelte really worth learning? i think angular still is the better choice
@zeeshaanmaudarbocus6827
@zeeshaanmaudarbocus6827 4 жыл бұрын
how come you don't need to call `.get().then()` on the queries? If not using Svelte, am i not supposed to call .get on the queries? Anybody?
@ninjachickn
@ninjachickn 5 жыл бұрын
I would be very interested in seeing more Svelte videos going forward.
@anujkrsingh
@anujkrsingh 5 жыл бұрын
Learn a lot.Thank you
@jacksontong6873
@jacksontong6873 4 жыл бұрын
I've followed your method to aggregate the number of pages on backend with Cloud function. How do I fetch the data for specific page with javascript SDK?
@anton-shubin-live
@anton-shubin-live 5 жыл бұрын
Hello Jeff! I have a question about .limitToLast(n) and Firestore Pricing. Does Firestore count skipped documents as READs? (like Node.js admin-sdk's .offset(n) does)
@abdoufma
@abdoufma 5 жыл бұрын
I would assume so, since "after(x).limit(n)" also counts as x+n reads
@hojdog
@hojdog 5 жыл бұрын
I would love AWS tutorials!
@kjvelarde
@kjvelarde 3 жыл бұрын
SVELTE 🤘
@nosknut
@nosknut 3 жыл бұрын
PLease make a video on infinite scroll with firebase and react!
@beeferplus
@beeferplus 5 жыл бұрын
Did the same feature release for Android platform?
@pilearn1266
@pilearn1266 3 жыл бұрын
if you can help the nuxt team to implement the new firebase v9 will be great!
@moseskarunia
@moseskarunia 5 жыл бұрын
Svelte is 🔥
@Eduardo-ld5us
@Eduardo-ld5us 5 жыл бұрын
You should do with ReactJS examples :(
@SolidousMdz
@SolidousMdz 4 жыл бұрын
Exactly, sadly this didnt help me at all. Having to discover how to figure out the first and last by hand sucks.
@rubenheymans1988
@rubenheymans1988 5 жыл бұрын
Can you do more angularfire2 please?
@Fireship
@Fireship 5 жыл бұрын
Yes, they just shipped a bunch of new features. It's always on my list.
@kameshvadivel9459
@kameshvadivel9459 5 жыл бұрын
Hello sir,how can I get scrollable tab bar like what's app in flutter???
@diyvideos9737
@diyvideos9737 Жыл бұрын
Gread tut it saved my ass
@tranquillityEnthusiast
@tranquillityEnthusiast 5 жыл бұрын
@Jeff Delaney what's your thought on flutter web??....
@Fireship
@Fireship 5 жыл бұрын
I need to play around with the latest version. It's cool, but most well suited for specific types of apps. I'm more excited about the potential of Flutter desktop.
@tranquillityEnthusiast
@tranquillityEnthusiast 5 жыл бұрын
@@Fireship I hope I see a vedio on CI/CD of flutter very soon...
@metalllus
@metalllus 5 жыл бұрын
I wish we had limitToLast in angularfire...
@abdoufma
@abdoufma 5 жыл бұрын
Euuuh, you do? It's available as a part of the JS SDK, it's one of the first things Jeff said in the video(0:04)
@metalllus
@metalllus 5 жыл бұрын
@@abdoufma maybe I am doing something wrong but if I query with an injected AngularFirestore service, I do not seem to have the option, the only option available is 'limit', eg. this.db.collection('A', ref => ref .where(something) .limit(10))
@metalllus
@metalllus 5 жыл бұрын
@@helloworld7826 nope, i'm using angular/fire 5.2.3 and it's not available there.
@ttbooster
@ttbooster 5 жыл бұрын
does svelte work within an Angular project?
@not2day646
@not2day646 5 жыл бұрын
No. Svelte is its own js framework
@alexzaporozhets8121
@alexzaporozhets8121 4 жыл бұрын
+1 for more videos about Svelte
@BeastinlosersHD
@BeastinlosersHD 5 жыл бұрын
*No views* also *has comments*
@Fireship
@Fireship 5 жыл бұрын
Looks like a few people decided to watch now ;)
@St0rMsk
@St0rMsk Жыл бұрын
Why the hell does this not work on my code? :D
@jrdnrc
@jrdnrc 5 жыл бұрын
nice
@vespertilian
@vespertilian 4 жыл бұрын
Discount code did not work :(
@blue_mustang_
@blue_mustang_ 9 ай бұрын
Don't forget to generate both queries in firebase.Because otherwise won't work.I was struggling with that becuase I forgot
@mantasreika
@mantasreika 4 жыл бұрын
wish this was only JS example.
@out_fur_blood
@out_fur_blood 3 жыл бұрын
Unless a framework is backed by a big company, I am not going to bother. I a tired of learning the new shiny thing, and then in real life nobody hires you for it.
@ricko13
@ricko13 3 жыл бұрын
Damn! Firestore must do better
@bitp
@bitp 5 жыл бұрын
First :)
@Fireship
@Fireship 5 жыл бұрын
Silver 🥈
@divinedela9125
@divinedela9125 5 жыл бұрын
1st
@Fireship
@Fireship 5 жыл бұрын
Gold 🥇
Front-end web development is changing, quickly
3:43
Fireship
Рет қаралды 1,3 МЛН
Flutter Firebase Setup for Power Users
12:59
Fireship
Рет қаралды 86 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 20 МЛН
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 62 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 124 МЛН
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
25 crazy software bugs explained
16:50
Fireship
Рет қаралды 692 М.
The WordPress ecosystem has lost its mind…
7:06
Fireship
Рет қаралды 886 М.
Model Relational Data in Firestore NoSQL
9:13
Fireship
Рет қаралды 381 М.
How Do I Paginate My Data? | Get to know Cloud Firestore #7
10:16
The most dystopian app ever made…
4:54
Fireship
Рет қаралды 981 М.
Firestore Megachat - Let's Build a Chat App
11:51
Fireship
Рет қаралды 130 М.
Claude has taken control of my computer...
4:37
Fireship
Рет қаралды 987 М.
Firebase - Back to the Basics
25:23
Fireship
Рет қаралды 595 М.
Future smartphone😀#youtubeshorts #smartphone #unboxing
0:24
E Zone
Рет қаралды 4,8 МЛН
Ai Samsung vs Ai Apple
1:00
Romancev768
Рет қаралды 253 М.
Handy remote!
0:25
LeraKek
Рет қаралды 3,2 МЛН
Subscribe for more Coding Tips!🔥 #aitools #codingcomplex #codinglife #program #aicoding
0:28
Claude Ams - Programming Guru 💻
Рет қаралды 12 МЛН
MacBook Pro Announcement - October 30
16:53
Apple
Рет қаралды 23 МЛН