React Query Tutorial with Typescript | Part 4 -- Paginated, Infinite Queries

  Рет қаралды 5,058

CodeDunks

CodeDunks

Күн бұрын

Пікірлер: 13
@kezevraanwar2
@kezevraanwar2 Жыл бұрын
Great vid exactly what I need 👍🏾
@loganj6203
@loganj6203 3 жыл бұрын
I love the intro music :)
@loganj6203
@loganj6203 3 жыл бұрын
The second zoom size is better
@igdev6095
@igdev6095 2 жыл бұрын
I'm having a problem with pagination. When I navigate to another page, I wanna set "page" back to "1" but nothing happen, my data is not update
@igdev6095
@igdev6095 2 жыл бұрын
I think ['products', 1] is still in my cache so it doesn't do anything like re-fetch new data
@MrZiyak99
@MrZiyak99 3 жыл бұрын
Loving this series so far! Do you think a combination of react query and react context eliminates the need for more powerful state management tools like redux? I usually default to redux for projects but was thinking of giving react query + context a try.
@CodeDunks
@CodeDunks 3 жыл бұрын
Thanks Ziyak! I think it depends on the use case and your personal preference. If you are using redux only to avoid props drilling, then yes I believe you can replace it. I usually see it like this, 1. If your project is a small project without a lot of state changes, then use context api 2. If your project plans on being a large application with a lot of state updates use redux. The reason for that is that redux only re-renders updated components, while context api will re-render all components regardless. This might have changed in react 17 or 18 so I am not sure but that's how I used to think about it.
@MrZiyak99
@MrZiyak99 3 жыл бұрын
@@CodeDunks Yeah makes sense. With redux I am inclined towards RTK Query over React Query. I feel like React Query would make a better pair with Context whilst RTK Query works better with redux. At this point tho I've seen too many of your React Query videos to not give it a try so I will surely check it out ✌️
@CodeDunks
@CodeDunks 3 жыл бұрын
@@MrZiyak99 Oh nice, I haven't had the chance to work with RTK Query but seems cool. I would say try it out for sure, I have been loving the dev experience with it.
@sreekumarmenon
@sreekumarmenon 3 жыл бұрын
In my current project, i use React Query with Context. very powerful !
@venicebeachsurfer
@venicebeachsurfer 2 жыл бұрын
A little off topic, but why create a new file for every Interface - that seems excessive.. why not just have one file, ala "Pagination.types.ts" or "Schemas.types.ts" etc.... ?
@Kuzkonic
@Kuzkonic 3 жыл бұрын
Hey Leo im having problems with the optional chaining part. When i start the app i get this error TypeError: Cannot read property 'map' of undefined {data?.pages.map((page) => .... ^ I used your tsconfig but im still having this error
@CodeDunks
@CodeDunks 3 жыл бұрын
It seems that the pages object returned from data is undefined.
React Query Tutorial - 20 - Infinite Queries
10:01
Codevolution
Рет қаралды 43 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 33 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 33 МЛН
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 20 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 43 МЛН
React Query Tutorial with Typescript | Part 1 -- Queries
34:22
Infinite Scrolling in NextJs 13 Using Server Actions
17:58
Hamed Bahram
Рет қаралды 23 М.
You're Doing React Hooks Wrong, Probably
20:11
Jack Herrington
Рет қаралды 64 М.
Rendering large lists with React Virtualized
21:16
LogRocket
Рет қаралды 49 М.
React Query Tutorial with Typescript | Part 2 -- Mutations
16:29
React Query: It’s Time to Break up with your "Global State”! -Tanner Linsley
29:01
React Conferences by GitNation
Рет қаралды 140 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 209 М.
CAUTION: Google's Gemini 2 is ACTUALLY useful
11:52
Alex Ziskind
Рет қаралды 60 М.
React Query Tutorial #5 - Pagination
11:41
Net Ninja
Рет қаралды 51 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 33 МЛН