How to Create Infinite Scroll in React | TanStack React Query

  Рет қаралды 21,474

Cand Dev

Cand Dev

Күн бұрын

Пікірлер: 42
@gaganyt7861
@gaganyt7861 Жыл бұрын
I watched a video about paginated queries in React Query three days ago. Since then, I've been trying to learn about infinite scrolling in React Query, but my search on KZbin didn't yield helpful results. I struggled to grasp the concept and even considered switching to another library. Now, coming across this video, it feels like god sent you to make a video about infinte scrolling to help me out.
@CandDev
@CandDev Жыл бұрын
God bless you bro
@yamelamadorfernandez7416
@yamelamadorfernandez7416 11 ай бұрын
It serves the purpose very well, I came in not knowing about infinite scroll and went out knowing, that is enough for me. Thanks bro.
@Mahesh_patidar
@Mahesh_patidar 2 ай бұрын
Your explanation was super smooth thankyou sir 🙌🙌
@abdallahazme4757
@abdallahazme4757 5 ай бұрын
Your explanation was super smooth, smoother than infinite scrolling itself. Thank you so much, mate, for making this video.
@CandDev
@CandDev 4 ай бұрын
You're welcome!
@julienheng3880
@julienheng3880 8 ай бұрын
Your explanation is very clear and easy to follow through. Please continue to make more tutorials. Thank you very much!
@박찬영-h4z
@박찬영-h4z 11 ай бұрын
hello i'm korea developer student !! i've seen many many videos about introduce, your videos really good!!! I appreciate it... maybe i always watching your video everyday
@CandDev
@CandDev 11 ай бұрын
Hello Korea 👋🏻, thank you so much for your nice comment.
@0xtz_
@0xtz_ Жыл бұрын
Yo thanks man 😂I was looking for this this morning hhhh and now I got it amazing videos keep going
@CandDev
@CandDev Жыл бұрын
Thanks for the KZbin algorithm 😁
@denys7567
@denys7567 Жыл бұрын
34:20 fix me if I'm wrong, but this approach leads to creating item innerRef={ref} for !each! last item for each page. So If you see a content which contains of 3 loaded pages - I will have 3 ref elements, so you will have an incorrect loading, because nextPageLoading will be triggered when you will see on for example the last element of first page (but after it you already loaded items from next 2 pages)
@vitorwindberg4212
@vitorwindberg4212 6 ай бұрын
you are correct
@delovoy_mikhail
@delovoy_mikhail 9 ай бұрын
братишка, дай бог тебе здоровья. В твоём видео всё что нужно. Внатуе красава!
@SergieArizandieta
@SergieArizandieta Жыл бұрын
ty buddy u really help me, other videos has a too complicated code and with gross explanation to explain this subject, ty again I hope u continue with this kind of tutorials :,)
@ahmedaq9018
@ahmedaq9018 11 ай бұрын
this is so clean .... thanks a lot for everything Cand
@mdkawsarislamyeasin4040
@mdkawsarislamyeasin4040 9 ай бұрын
Bro you save my huge time. I was looking for this.
@FaizSultan430
@FaizSultan430 7 ай бұрын
thank you so much for deep explanation i was struggling with infinite scrolling in react query i watched a lot of videos on youtube but your video is best ❤
@CandDev
@CandDev 6 ай бұрын
Thank you 🤍
@voldemortvi4264
@voldemortvi4264 Жыл бұрын
amazing video as always !
@ahmedaq9018
@ahmedaq9018 11 ай бұрын
i've seen many videos for you,, they are always simple, direct and to the point... hopefully you will consider creating a TanStack tutorial where you go through it all in practical way (the same way you do).-- 🥰🥰🥰
@cleverprogrammer7409
@cleverprogrammer7409 Жыл бұрын
Amazing Amazing I was looking many days thanks alot
@leevu12
@leevu12 6 ай бұрын
Thank you so much! clear explaination sir
@socialultra7219
@socialultra7219 9 ай бұрын
thanks dude, this really helped me out
@jhonvaron1721
@jhonvaron1721 11 ай бұрын
Exelente ejemplo , muchas graciass 🥳
@xtremeandroidsupport3837
@xtremeandroidsupport3837 4 ай бұрын
great video thanks !!
@asifkabiremon
@asifkabiremon Жыл бұрын
This video content is really awesome and helpful to me
@letthesuntalk
@letthesuntalk 10 ай бұрын
What if I'm using components with imgs and stuff like that, how can I mantain the performance when I scrolled and rendered a lot of items? Thank you :]
@shubhamupadhyay3174
@shubhamupadhyay3174 9 ай бұрын
thank you it help me a lot
@divyprakash4052
@divyprakash4052 8 ай бұрын
How is it possible to pass functions in use effect dependency
@zunnoorainrafi5985
@zunnoorainrafi5985 Жыл бұрын
brother I have a question, I used useInfiniteQuery in nextjs and I am fetching all blog posts in the function of useInfiniteQuery, as our data is coming from {data} = useInfiniteQuery({...}) and we can't use useInfiniteQuery in "server component" so I made my component a "client component" but I want that all my blog posts should be fetched in server component for less initial load content time and i also want infinite scroll on the main page of all blog posts. So how i can do this?
@mdabdullahmamun333
@mdabdullahmamun333 10 ай бұрын
i notice that useInfiniteQuery hook render multiple time for on render how can i fix this
@Hunterhuni
@Hunterhuni Жыл бұрын
Hey, really nice video, I really appreciate it. Just one question: How would I achieve the same thing but in reverse order? Meaning the list starts from the bottom and whenever the user scrolls up more data is loaded?
@favourz1
@favourz1 Жыл бұрын
array.reverse()
@banksom2861
@banksom2861 9 ай бұрын
Thank you very much
@028-manikandan3
@028-manikandan3 Жыл бұрын
bro initialPageParam name given use query bro its getting error bro why?
@mahamatabakarbechir7324
@mahamatabakarbechir7324 9 ай бұрын
Thanks a lot :)
@zunnoorainrafi5985
@zunnoorainrafi5985 Жыл бұрын
Assalamu alaikum, Thanks brother for this valuable content. How Old are you ? and from where you learn the most ? and will you tell me your favourite teachers on the internet?
@CandDev
@CandDev Жыл бұрын
Wa'alaikumussalam, brother. I am 27 years old. I learn from documentation and find awesome code on GitHub from people around the world. Oh, and my favorite teacher is Brad Traversy.😁
@zunnoorainrafi5985
@zunnoorainrafi5985 Жыл бұрын
@@CandDev thanks brother for your kind response
@o.j1398
@o.j1398 11 ай бұрын
Nice video, but what about Horizontal infinite scroll?
@GenilsonAraújo-w7u
@GenilsonAraújo-w7u 11 ай бұрын
Just display flex and I think it will work good!
Learn React Query In 50 Minutes
51:09
Web Dev Simplified
Рет қаралды 315 М.
Infinite Pagination Component With React Query
14:58
Cosden Solutions
Рет қаралды 25 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 100 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 15 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 44 МЛН
Infinite Scrolling With React - Tutorial
25:28
Web Dev Simplified
Рет қаралды 368 М.
How to generate PDF in React using React pdf
15:35
Cand Dev
Рет қаралды 355
Can React.js Render 1,000,000 Elements?
11:38
CoderOne
Рет қаралды 38 М.
React Query Is (Still) Essential - My Favorite React Library
11:04
Theo - t3․gg
Рет қаралды 158 М.
Build an INFINITE SCROLL using Next.js 13 Server Actions
12:48
Raj talks tech
Рет қаралды 15 М.
Why I don't use React-Query and tRPC in Next.js
18:58
ByteGrad
Рет қаралды 99 М.
Infinite Scrolling in NextJs 13 Using Server Actions
17:58
Hamed Bahram
Рет қаралды 24 М.
Learn Intersection Observer In 15 Minutes
15:32
Web Dev Simplified
Рет қаралды 345 М.
Loading Your React Data Like This is Awesome
13:27
Josh tried coding
Рет қаралды 114 М.
React Query Makes Writing React Code 200% Better
13:54
Web Dev Simplified
Рет қаралды 196 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 100 МЛН