Infinite Pagination Component With React Query

  Рет қаралды 25,669

Cosden Solutions

Cosden Solutions

Күн бұрын

Пікірлер: 44
@akshatpandey2609
@akshatpandey2609 10 ай бұрын
please make a video on Best Design Practices with React Query - with custom hooks, where we have a lot of api requests
@AbsolutePain
@AbsolutePain 10 ай бұрын
Include auth context , react router dom too 👀
@dnguyendev
@dnguyendev 8 ай бұрын
concise, easy to understand, the best react-query pagination tutorial!
@hamzaeshoul
@hamzaeshoul 8 ай бұрын
Very clear and easy to understand. Thank you so much for your dedication to all react developers !
@98saiful
@98saiful 10 ай бұрын
Love your new background!
@gufranlazuardi
@gufranlazuardi 4 ай бұрын
Your explanation was very clear and easy to understand. Thank you!
@penaf
@penaf 10 ай бұрын
Nested ternaries for the win! :) Gr8 tutorial as always
@jomoc6112
@jomoc6112 6 ай бұрын
I did not know there was such a thing as this. I have implemented the same output, but through a much harder path. :( . new subscriber here
@axechannel5589
@axechannel5589 Ай бұрын
Thanks bro! You are the best🤘
@MarselNz
@MarselNz 8 ай бұрын
That's exactly what I wanted to know, thanks!
@haghighi251
@haghighi251 9 ай бұрын
Instead of using "Chapter X" please use a name that is relevant to each section title so we can jump to a specific part directly. It will be useful especially when we want to go to a specific part of the video without searching all Chapters :D. By the way, The video is so clear and useful. Thanks for making it.
@mohamedsalimbensalem6118
@mohamedsalimbensalem6118 10 ай бұрын
what if we fetched tooo many, the website will become laggy can you do a video how to do virtualization for performance... and what if the component can dynamically increase in size how can i still impliment the virtualization in this case ?
@tangaka3996
@tangaka3996 10 ай бұрын
the react intersection observer returns a ref that will be used to check if its is in view and put to the very last item of a page.
@worldofkent576
@worldofkent576 10 ай бұрын
How would you Implement by scrolling upwards like messenger app, then refetch old data/message and grows the container upwards?
@Gokulakannannedunchezhiyan
@Gokulakannannedunchezhiyan 10 ай бұрын
In this example fetched items are added to the bottom of the list. But in your case we have to add at the top and keep the observer item on the top.
@everybodyguitar5271
@everybodyguitar5271 Ай бұрын
Any example in TypeScript? The same code can not run in TypeScript.
@enriquesalomon8197
@enriquesalomon8197 7 ай бұрын
I want to ask , in using react-select with reactjs, react query and supabase stack, i want to load all the data from the supabase that is almost 200000 of data, the problem is only 1000 is being display in the react-select, as we know displaying large of data into client side may effect performance, and what solution can be use in order to display all tha data in the react-select?
@ghostaccountlmao
@ghostaccountlmao 10 ай бұрын
Very important, thanks.
@enriquesalomon8197
@enriquesalomon8197 7 ай бұрын
using the infinite pagination, it is possible to implement it with a react-select? like a scrolling at a bottom will trigger the fetching the nextpage ? and also like searching in the select input if no data found in the cached , it will refecth again to the server side as a searching parameter, the return the data and added to the cached. ?
@raviel_0422
@raviel_0422 8 ай бұрын
Thank you. I need this
@daniellchukwu
@daniellchukwu 7 ай бұрын
If I could subscribe again, I absolutely would
@arpithagm2231
@arpithagm2231 6 ай бұрын
is onSuccess being deprecated from useInfiniteQuery? If so, what is the alternative for onSuccess?
@FatahChan
@FatahChan 10 ай бұрын
Doesn't this re-renders the whole items that was already fetched
@imatrules
@imatrules 10 ай бұрын
What's the best way to handle toggle switches i have a page with a lot of them and i don't like the large amount of states?
@catalincatalin4101
@catalincatalin4101 9 ай бұрын
Great video, thanks. Your volume on the microphone seems a bit low.
@waleedsharif618
@waleedsharif618 10 ай бұрын
Will you create a video where you talk about React 19 ? It seems to be very interesting
@mohamedyamani8502
@mohamedyamani8502 10 ай бұрын
Great video as always. I wonder why you use status instead of isLoading?
@cosdensolutions
@cosdensolutions 10 ай бұрын
Status works for error and loading, so no need for isLoading and isError
@abhishek7056
@abhishek7056 9 ай бұрын
How can we do this in nextjs 14 server components ? I mean without reactquery and useEffect
@widurahasta9473
@widurahasta9473 4 ай бұрын
do you know how to create infinite scroll up to load history chat like whatsapp? i'm struggle do it
@godofwar8262
@godofwar8262 10 ай бұрын
Please make a single video for typescrpit crash course
@47joshua
@47joshua 10 ай бұрын
Create a video describing the react server component (RSC)
@dipanshusabharwal
@dipanshusabharwal 10 ай бұрын
Are you planning to come up with a React course ?
@cosdensolutions
@cosdensolutions 10 ай бұрын
Yeah, coming out in a month!
@yourlinuxguy
@yourlinuxguy 6 ай бұрын
Very nice video but this will not work if you zoom out the page to the point that the last element doesn't touches the end scree. Then in that scenario load more pages won't fire. And thus the infinite scroll won't work. Just to keep this thing in mind.
@josephito27
@josephito27 3 ай бұрын
those are edge cases, to start with.. why would anyone do that? and in such cases you can just render a "load more" button if the observer is on view the whole time, idk
@deanolium
@deanolium 2 ай бұрын
From a UX pov, you'd want to actually put the observer ref on either one of the items before the last one, or at least make the observer div (though semantically that's ick) before there, so that it starts fetching before the user actually gets to the bottom of the list. Giving the illusion of being a real infinite list instead of one that has to buffer in whenever you get to the bottom. That said, useInview fires when the referenced component is in the viewport, not just when it crosses the bounds. So zooming out the page will still cause it to trigger.
@Ray-ko6cw
@Ray-ko6cw 8 ай бұрын
Than you bro :)
@fabioalcocersejas2944
@fabioalcocersejas2944 10 ай бұрын
The link to the repository I think it sends to the wrong project
@cosdensolutions
@cosdensolutions 10 ай бұрын
you're right, fixed. Thanks!
@Temp-pn4lm
@Temp-pn4lm 7 ай бұрын
Wish you told me how to actually use the hook instead of one example. my back-end works way different than watch dummy code you represented so the video was useless to me
React Hook Form - Complete Tutorial (with Zod)
28:22
Cosden Solutions
Рет қаралды 139 М.
Why I don't use React-Query and tRPC in Next.js
18:58
ByteGrad
Рет қаралды 99 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 8 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,1 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Loading Your React Data Like This is Awesome
13:27
Josh tried coding
Рет қаралды 114 М.
Become a Master at Reusable Components in React
19:51
Cosden Solutions
Рет қаралды 7 М.
Dioxus vs Leptos  | Rust GUI Wars #2
21:18
Creative Coders
Рет қаралды 10 М.
How to Create Infinite Scroll in React | TanStack React Query
35:07
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 М.
Infinite Scrolling With React - Tutorial
25:28
Web Dev Simplified
Рет қаралды 367 М.
Combining Zustand with React Query
20:24
Cosden Solutions
Рет қаралды 30 М.
React Query Tutorial #5 - Pagination
11:41
Net Ninja
Рет қаралды 51 М.
Design patterns in React
14:37
Cosden Solutions
Рет қаралды 179 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН