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 UA-cam 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.
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
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 ❤
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 :,)
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).-- 🥰🥰🥰
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)
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 :]
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?
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?
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?
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.😁
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 UA-cam 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.
God bless you bro
Your explanation was super smooth, smoother than infinite scrolling itself. Thank you so much, mate, for making this video.
You're welcome!
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.
Your explanation is very clear and easy to follow through. Please continue to make more tutorials. Thank you very much!
Yo thanks man 😂I was looking for this this morning hhhh and now I got it amazing videos keep going
Thanks for the UA-cam algorithm 😁
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
Hello Korea 👋🏻, thank you so much for your nice comment.
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 ❤
Thank you 🤍
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 :,)
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).-- 🥰🥰🥰
amazing video as always !
this is so clean .... thanks a lot for everything Cand
great video thanks !!
Bro you save my huge time. I was looking for this.
братишка, дай бог тебе здоровья. В твоём видео всё что нужно. Внатуе красава!
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)
you are correct
Thank you so much! clear explaination sir
Amazing Amazing I was looking many days thanks alot
thanks dude, this really helped me out
This video content is really awesome and helpful to me
thank you it help me a lot
Exelente ejemplo , muchas graciass 🥳
Thanks a lot :)
Thank you very much
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 :]
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?
array.reverse()
How is it possible to pass functions in use effect dependency
i notice that useInfiniteQuery hook render multiple time for on render how can i fix this
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?
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?
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.😁
@@CandDev thanks brother for your kind response
bro initialPageParam name given use query bro its getting error bro why?
Nice video, but what about Horizontal infinite scroll?
Just display flex and I think it will work good!