React Query Full Course (With Common Patterns & Best Practices)

  Рет қаралды 7,077

Youssef Benlemlih

Youssef Benlemlih

Күн бұрын

Пікірлер: 16
@K.Huynh.
@K.Huynh. 16 сағат бұрын
Thank you so much. I love the way you share knowledge.
@kidushh4426
@kidushh4426 Күн бұрын
This video helps me a lot man thank you
@FrontendNerd-lg3oh
@FrontendNerd-lg3oh 2 ай бұрын
Enjoyed watching brother, Also my fav prophet is Yusuf (p.b.u.h) There entier awesome chapter in the quran about Yusuf peace be upon him lucky you are name after him , i wish my parent gave name Yusuf or Omar
@koranonta8083
@koranonta8083 27 күн бұрын
Thank you very much for this superb tutorial
@mateus-dot-cc
@mateus-dot-cc 2 ай бұрын
nice video! optimistic is great I'll try to use
@piyushaggarwal5207
@piyushaggarwal5207 2 ай бұрын
Hi Youssef! Nice video.
@ThingsTK
@ThingsTK 27 күн бұрын
so useMutationState only return pending user, we should use this with useQuery together? display mutation state while status is penging and after that useQuery will refetch and display real data? thanks
@youssefbenlemlih
@youssefbenlemlih 24 күн бұрын
Yeah you could also do the optimistic updates inside the custom queries
@krishparmar7917
@krishparmar7917 2 ай бұрын
great 💙
@NiyubwayoIrakozeElie-l8v
@NiyubwayoIrakozeElie-l8v Ай бұрын
Great video! may you also show us how you did backend?
@youssefbenlemlih
@youssefbenlemlih Ай бұрын
So for the backend I used express. The data is saved in memory and not in a db, so it's easy to set up. I used express-validator for validating the request data. You can check it out here: github.com/youssefbenlemlih/react-query-demo/blob/main/backend/routes/index.js
@mohammadabbas1623
@mohammadabbas1623 2 ай бұрын
Great
@zeeshan4341
@zeeshan4341 Ай бұрын
I just want to ask do we still need some global state management tool for global state like redux toolkit, zustand etc ? and can we use those in combination with recat query ? Also show the getContacts, getContact functions code pls.
@youssefbenlemlih
@youssefbenlemlih Ай бұрын
It depends on the app you're building, and especially WHERE the data is stored. If the data is saved on a backend, and you query it and modify it via API calls, then react-query should be sufficient. If you're dealing with complex client state, where the data is modified on the client, then I would go with RTK & co. Combining react-query with other state management libraries is also easily doable. A common pattern is to have some state stored in Zustand (for example) and passed to a custom query hook as a parameter.
@FrontendNerd-lg3oh
@FrontendNerd-lg3oh 2 ай бұрын
Brother can you provide Github link ? Thanks
@youssefbenlemlih
@youssefbenlemlih 2 ай бұрын
Hi! Sure, I just pushed the code to GitHub: github.com/youssefbenlemlih/react-query-demo/
React Design Patterns: Handling Modals (3 Ways)
4:32
Youssef Benlemlih
Рет қаралды 3,3 М.
Combining Zustand with React Query
20:24
Cosden Solutions
Рет қаралды 31 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
This Folder Structure Makes Me 100% More Productive
24:36
Web Dev Simplified
Рет қаралды 113 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 218 М.
Unintuitive behaviors of React Hooks
16:26
Theo - t3․gg
Рет қаралды 26 М.
The Git Command I Wish I Knew Earlier
6:34
Youssef Benlemlih
Рет қаралды 1,4 М.
React Doesn't Scale
1:05:15
Theo - t3․gg
Рет қаралды 73 М.
React Query Tutorial (TanStack Query)
56:56
Anson the Developer
Рет қаралды 4,6 М.
State Management in React Will Never Be the Same
15:21
Austin Davis
Рет қаралды 18 М.
All React Hooks Explained - React Hooks Tutorial 2025
1:28:44
PedroTech
Рет қаралды 10 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН