React Query Tutorial for Beginners vs Redux, Axios with CRUD Example

React Query Tutorial for Beginners vs Redux, Axios with CRUD Example

Dave Gray

2 года назад

87,059 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@AmirulIslam-uj3yz
@AmirulIslam-uj3yz - 03.11.2023 06:53

Thank you Mr Dave

Ответить
@Aishwarya-9425
@Aishwarya-9425 - 20.10.2023 18:36

Thank you😇🙏

Ответить
@JagdishChoudhary
@JagdishChoudhary - 26.09.2023 09:32

In one of the large-scale projects, I am planning to use Redux-Toolkit for "client state" management, as I have so many modules and features such as Search, Advance Filter, infinite scrolling etc. So that I can store the state in the Redux toolkit using store and slices. Now I love React-Query because of "useInfiniteQuery", but I don't want to increase the bundle size as well by installing another library.

One of the use case: When I get the list of data from the server, I want to cache the data, and if the user search or filter the data, I want to store the "searchText" and "FilterData" in the state, so when user navigate between pages and come back to the listing page, I can simply provide the already filtered data, that will sure improve the UX.

So is it a good idea to stick with RTK Query as it is available inside the Redux-toolkit package and be in the same eco-system?

Ответить
@mdameer0732
@mdameer0732 - 14.08.2023 10:36

so the content variable was not a state variable and yet the changes were reflected like it was a state variable? how

Ответить
@laxmiprasanna4092
@laxmiprasanna4092 - 12.08.2023 05:08

Does components render or update if server state changes in React query ? I mean without maintaining additional client state.

Ответить
@Reebak018
@Reebak018 - 27.07.2023 23:08

Thanks for this video.

Also is this the same as TanStack Query ?; as far i know should be the same, the only difference is TanStack is avaiable for other frameworks.

Ответить
@cortex3657
@cortex3657 - 09.07.2023 07:18

While mutating does all todos re render?????

Ответить
@oortcloud210
@oortcloud210 - 06.07.2023 12:22

What a fantastic video. Everything explained so concisely and clearly. Thank you!

Ответить
@abuhossain4274
@abuhossain4274 - 02.07.2023 09:50

as your lesson its clear that rtk and react query use case depends on the size of project.

Ответить
@manoj03h
@manoj03h - 01.06.2023 07:23

I too like RTK Query with Redux

Ответить
@VeerapatBoonkerd
@VeerapatBoonkerd - 27.05.2023 08:57

thx. straight to the point and this one is very easy to understand.

Ответить
@mohamedyoussef8835
@mohamedyoussef8835 - 08.05.2023 22:08

Awesome video as always ++++++++++++++++ 🙂

Ответить
@jordanryanethanowona2974
@jordanryanethanowona2974 - 19.04.2023 21:17

I absolutely love your channel. Of course i just subscribed lol. I have a question please. Do you have a video with Reactquery with jwt refresh tokens? and rbacs? basically with the middleware ? thanx a lot for everything. you are the real MVP lol.

Ответить
@elinordeniz
@elinordeniz - 15.04.2023 09:38

Hi Dave,
We would like intermediate to advanced react or mern stack projects. That would be so useful for us after all these great tutorials. Thank you for all.

Ответить
@daniel_narh
@daniel_narh - 10.03.2023 00:59

Please what programming font are you using? The one in this video seems pretty decent. Taking this as a crash course

Ответить
@jatilyadav4000
@jatilyadav4000 - 05.03.2023 01:48

Amazing video as always

Ответить
@IzharJumadi
@IzharJumadi - 28.02.2023 16:02

Great stuff! Thanks so much for sharing :)

Ответить
@sherinc7998
@sherinc7998 - 14.02.2023 23:14

Is it possible to use react query in project redux toolkit is used for state managmemt ?

Ответить
@Rafiki041087
@Rafiki041087 - 05.02.2023 13:46

Really good content, I'm new to react and these videos are a great way to learn.

Ответить
@victorkasap9569
@victorkasap9569 - 25.01.2023 17:23

Дэйв, спасибо, отличный обзор библиотеки
Но хотелось бы увидеть весь потенциал, напримере какого нибудь список дел,
чтобы можно было отметить готово дело или нет, с отдельной страницей каждого дела, с пагинацией и чтобы не было перерендеров (наверное это ключевое) =)

Ответить
@factiondivergent7740
@factiondivergent7740 - 19.01.2023 20:06

i didin't understand how did you increment the id without adding it to the todo :
addTodoMutation.mutate({ userId: 1, title: newTodo, completed: false })

Ответить
@minijavi19
@minijavi19 - 08.01.2023 20:46

Great work! Loved your video.
Just one thing I'm not quite understanding... where are we mapping our ./data/db.json to the Todo api? how does the app knows?

Ответить
@handikadwi7559
@handikadwi7559 - 03.01.2023 18:43

Would you update this course to use React Query v4?

Ответить
@howiewang4238
@howiewang4238 - 22.12.2022 22:08

Thank you for making this tutorial.

Ответить
@mhdfirassbarakat6587
@mhdfirassbarakat6587 - 19.12.2022 15:17

"let me know what you like in the comments" well ...... I like your videos so please for the humanity future keep going making this great content

Ответить
@jaikrishna3586
@jaikrishna3586 - 15.12.2022 13:39

I learned a lot today.

Ответить
@shakhawathhossainshatu1487
@shakhawathhossainshatu1487 - 12.12.2022 20:12

Thank you so much for videos

Ответить
@mohammadmahdialvansaz8001
@mohammadmahdialvansaz8001 - 05.12.2022 11:45

Thank you.

Ответить
@ashharkausar413
@ashharkausar413 - 15.11.2022 00:00

In your opinion what is best for a react store? An example is a store containing the following: JWT access token, refresh token, name, credit card token etc. I have feeling you will say RTK but do you think RQ is good also?

Ответить
@farhanizzaz5283
@farhanizzaz5283 - 05.11.2022 16:12

hello, may i know why u used the select meanwhile the docs said that the third parameter is for the cache time? thank you

Ответить
@brayandvelasquez2256
@brayandvelasquez2256 - 03.11.2022 18:19

I dont understand why when I am using React Query in Observers I get 26 or 29 in it. You can say why?

Ответить
@saurabhpathak6177
@saurabhpathak6177 - 31.10.2022 16:38

I am getting an network error with checkbox element and it is not getting checked on unchecked.

Ответить
@ssj1260
@ssj1260 - 28.10.2022 13:55

Thanks for the video, great intro to react-query.
Quick question if you don't mind. Why do you use a variable with JSX instead of a Component? (e.g. newItemSection), is there any benefits to this or is it personal preference?

Ответить
@SG48907
@SG48907 - 16.10.2022 17:21

Damn, it's still too slow at 1.5x speed 🤦‍♂

Ответить
@Pareshbpatel
@Pareshbpatel - 13.10.2022 13:20

Excellent Tutorial on React-Query. Thanks, Dave

{2022-10-13}, {2022-11-10}, {2022-11-17}

Ответить
@AnnieTaylorChen
@AnnieTaylorChen - 11.10.2022 01:31

I was going to ask you the "fetch" vs. "axios", is it still relevant today to use "axios"? I saw you are using it in React tutorial.

Lately I've been considering React Query and will definitely check out this video too!

Ответить
@shnam928
@shnam928 - 08.10.2022 21:37

Thanks a lot. Can we use useQuery for GET and for post, put and delete we use useMutation?

Ответить
@farisabuali3978
@farisabuali3978 - 01.10.2022 03:52

Thanks! Mr. Dave

Ответить
@alexshepel9387
@alexshepel9387 - 27.09.2022 15:32

Awesome tutorial, thx!

Ответить
@thattablebloke
@thattablebloke - 20.09.2022 17:27

Hey Dave, another great vid, thank you. I'm using React Query for a project and have the basic fetching and mutations going - one thing I'm wondering if it's possible to do is when a component/page loads, check react-query data I have in cache already from other pages for a matching id to save having to fetch this item again. If it's there, just use that data. If not, fetch the data. Is this possible, or way too much to be doing? I've been trying to figure out for ages now but can't quite figure it out..

Ответить
@hamzahahmad1670
@hamzahahmad1670 - 17.09.2022 17:50

Absolutely underrated gem of a channel. This was such a brief yet thorough

Ответить
@gunasekarant6498
@gunasekarant6498 - 16.09.2022 07:18

Awesome one 🙂

Ответить
@brayandvelasquez2256
@brayandvelasquez2256 - 11.09.2022 22:13

Great video! quick question, how React Query says, do u even use Redux anymore?

Watching this video I can say it is better and more clean code than using Redux, Thunks and things like that. What do u think? I just started a big Proyect and we decided to use React Query for all our work, but that, more understanding using React Query than others libraries

Ответить
@NSlides
@NSlides - 02.09.2022 15:19

on rtk query vs react query.. seems react query is much simpler to implement.. since rtk query is supported by the same redux team.. hav some advantage.. What do you think Dave?

Ответить
@benarbiamohamedtaher546
@benarbiamohamedtaher546 - 22.08.2022 16:40

Excellent tutorial,thank you gray

Ответить
@Un0Real333
@Un0Real333 - 22.08.2022 15:45

What is your opinion on using Redux and Axios (instead of RTK) for a big project? I just love using axios.

Ответить
@ahamisi
@ahamisi - 16.08.2022 05:30

Yes, Next Js + Typescript 🥲

Ответить
@raffaelenicosia9335
@raffaelenicosia9335 - 15.08.2022 12:55

Dave, you're definetly raising the bar!

Ответить