Redux Toolkit Query vs React Query

preview_player
Показать описание
Picking an API access library for your React app is tough, there are so many great choices! Let's take a look at two of the most popular; React Query and Redux Toolkit Query.

👉 What's my theme? Night Wolf [black]
👉 What's that font? MonoLisa

Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.

00:00 Introduction
00:13 The project
01:03 Implementation using RTK Query
11:50 Implementation using React Query
21:28 Outroduction

#redux #reduxTookit #reactQuery #react
Рекомендации по теме
Комментарии
Автор

Its finally here. Jack you're a godsend. Just a couple of months ago I swapped rtk query with react query since I couldn't grasp rtk query that well. This is much appreciated. Looking forward to more great stuff 😄

saakshyadevat
Автор

The best teacher ever. You are my favorite, please do not stop. Jack you inspired me to switch from Angular to React, thank you so much.

sviatoslav
Автор

Wow thank you so much for listening my request 😭 really appreciated. Redux(state management) is still difficult but trying my best to gain the knowledge

idevbrandon
Автор

I am so glad that I came to this hidden gem. Your videos are so amazing! Learning so much from you.

ritz
Автор

Wow, just explored this hidden gem 💎. Such a quality tutorials! Especially the fact that there's github code linked almost to each video. Thank you!

mukhammadsobirov
Автор

Thanks again, Jack! Amazing video as usual!
You always make it look easy!

alisonhj
Автор

Thanks, Jack. Love all your videos. Straight to the code.

johnyepthomi
Автор

Another great video! Been binging your stuff all day

trenthm
Автор

I have resisted learning redux my whole dev career. So far so good haha

isaacweber
Автор

HI from Brazil Jack, this video was amazing. I've just subscribed!

felipecouto
Автор

The problem with these videos is that after watching I always get an urge to do major refactoring on existing projects to try all these new cool techniques or packages. Inspiring content as always Jack.

Really liked the React Query + Axios style of API calls, I'm going to have to give this a try. I would love to see an elegant way to combine this or SWR with something like Auth0 where you may have a short-lived authentication token that needs to be refreshed (with a refresh token) at a certain interval.

Papapiishu
Автор

One thing is that rtk-query doesn't have support for infinite scrolls (at least for now), while react-query has a useInfiniteQuery hook that performs really well.

manou
Автор

I just feel like rtk query is still limited to what we can do with it in complex scenarios since we can't just access the api responses without their hooks unlike redux, where we can just use the variables (in multiple components) we store our responses in

tasin
Автор

whenever i am faced with a challenge in typescript or react i think to myself "i bet jack herrington has a video for this, ohhh but what if he doesn't? maybe i can make a suggestion and he'll do a video on it and it'll be awesome because it was my idea!" I am forever at a crossroads between disappointed and ecstatic, because jack ALWAYS has a video to fit my needs... thanks jack!

thehaptiK
Автор

Thanks Jack for the high quality content

AbdelhameedG
Автор

They are very similar, redux toolkit is very similar, it seems to me equal to react-query- If in a project I use redux it's obvious that I don't have to add react-query and it's recommended to use redux. If in a project I use Recoil, well it's strongly recommended to think to use react-query toghether with recoil. This could be the winner solution for state management in 2022

vittoriomorellini
Автор

thank you for a great content.
Mr.Jack, can you make a video on axios error handling with react/typescript best practice?
with this new "unknown" type and how to access response property on error if Error does not have it.
And how to make it reusable pattern as a single source of error handling.
thank you once again.

Ernuna
Автор

This is such a great stuff! Thanks for that!

RenatoGalvones
Автор

Great video. How Can we fetch data on the server with next.js and put it to the cash as initial data? With react query we can, but I can't find the recipe with rtk query

edshav
Автор

great content dude!, u got a new subscriber from Brazil !!

rockNbrain