React Query Tutorial - 24 - Optimistic Updates

preview_player
Показать описание

Use coupon code: CodevolutionYoutube for any workspace upgrade. Select "Add promo code" on checkout, enter the code, then hit "Apply". This will apply a 100% OFF lifetime discount to your subscription. Enjoy and feel free to invite others to your workspace!

📱 Follow Codevolution

React Query Tutorial on Optimistic Updates
Optimistic Updates with React Query
Рекомендации по теме
Комментарии
Автор

This playlist should be in the React Query docs for sure!

belkocik
Автор

What an awesome and straight forward tutorial. Thank you.

ThugLifeModafocah
Автор

Wow, I really just completed the entire playlist in one day! This is super cool

pranavyeole
Автор

One of the best and yet simple explanations out there!

TwistedFate
Автор

man i get excited learning new important stuff from ur channel

AboudASalam
Автор

I've watched the complete playlist. Kindly, make a playlist for react testing.

farazhusain
Автор

This is probably the best react query course. Thank you!

amisoliman
Автор

I have gone through this set of videos series and have enjoyed it very much. It would be great if you can do a video on how to retrieve data (a list or by id) using a POST request (not a mutation). The advantage of this is that query string parameters are not added to a URL and are not visible to the visitor of a website. Thank you for your hard work and great quality material.

shvideo
Автор

Thank you for these wonderful and helpful videos 🙏🏾

adehenry
Автор

This video has helped me a lot! Thank you!!!

Shuyinz
Автор

hello :) awesome vedio, as always,

on query though, we are "refetching" data once again!! can we not use "setQueryData()" instead as we did in previous video?

asifuzzamanbappy
Автор

Does the performance get affected if there is a refetch every time you add new data or it is not a good practice?

psyrone.agpalo
Автор

I am just missing an example of a add hero hook versus an edit hero hook. Would you add and edit the hero on the same hook or would you create separate hooks for each matter?

lfbarni
Автор

If I have an API that performs bulk operations but responds immediately without actual processing(since its going to take approx 10s), I can store the data in local storage and display expected result in the UI temporarily. Then, I can poll the server after 10 seconds to update the status and remove the data from local storage once it's processed. How can this be handled with an optimistic update? I am not sure.

bishnusukla
Автор

Thank, what if we only update one field. For example task name and postgres database automatically adds Id. How can we optimistically update if we don't have is until it's recorded in database

Feronom
Автор

It appears that the context input of the onError function does not preserve the previous value of previousHeroData and changes when executing setQueryData. Have you faced this same issue and is there any way around it?

erasromani
Автор

Sir, I have a question, can I use useMutate on PUT, PATCH or DELETE request?

naimurrahman
join shbcf.ru