React Query Tutorial with Typescript | Part 2 -- Mutations

preview_player
Показать описание
In this video, I will introduce and help walk through how to use react-query mutations and invalidate the cache with these mutations.

This part of the video will be focusing on react-query useMutation and introduce query cache invalidation.

Timestamps
0:00 Intro
1:00 Start create
2:45 useMutation
6:10 useMutation side effects
9:40 query invalidation
Рекомендации по теме
Комментарии
Автор

The best channels are often the ones that are with less subscribers. Love your content hands downs. Definitely going to like and share

albertdugba
Автор

man, this is by far the best react query tutorial I've watched, love the way you present the content and explain it, your videos are fast paced which is so cool. keep it up man, and don't get discouraged by the numbers man you have one of the best youtube channels out there in my opinion, finally thank you so much for your work

abdelrahmanabdelatief
Автор

Your contents and stacks are what I try to build for my small projects!
Thank for all video and I'll keep following it.

loganj
Автор

Subscribed and liked. My feedback is... :Clould you please slow down a little bit?". I'm from Indonesia and English is not my native language. But thanks for this provided typescript using react-query. So much appreciate it.

alfieqashwa
Автор

Thanks a lot Leo, everything was great. The only problem is that you scroll up and down too much within the VScode and I personally get confused! :D

alirezavahidi
Автор

Thanks for the amazing video! I was wondering if you could tell me why do we need those 3 arguments on the onSuccess if we aren't using them. Are they optional? Also, what's the meaning of the underscore on _variables and _context? Thanks!

Pedro-yohr
Автор

I realised that I needed to learn a bit more about React Query and this series using Typescript is perfect. One thing though is there a reason you're using React.SyntheticEvent in the onSubmit function instead of React.FormEvent?

stevereid
Автор

what about if I have 4 functions each one doing some logic like update item / delete item / addItem
how do toggle btw these in useMutations()

ahmedshehata
Автор

do you know how to type error when using mutation and react-query?

jesusmendoza
Автор

your knowledge is good but you really need to work on your wording and speech skills, 70% of your words are "actually" and "kind of", might throw some people like me off

andrearossi