Five Clever Hacks for React-Query and SWR

preview_player
Показать описание
Five things we can do with react-query and swr that aren't just running a single query.

👉 VS Code theme and font? Night Wolf [black] and JETBrains Mono

0:00 Introduction
1:43 Project Setup
4:49 Complex Queries
12:31 Stopwatch
17:15 Throttled Logger
22:24 GPS
24:58 Web Workers
32:19 Global State

#react #javascript #reactjs
Рекомендации по теме
Комментарии
Автор

I really hope your channel blow up soon. It is really special to see someone with your level of experience willing to share all the knowledge acquired. You are truly a blessing for the community, I wish you the best, Jack!

thiscris_
Автор

Prayers for you and your wife, Jack...🙏
Thank you for everything you do.
The community, myself especially,
is all the better for your presence.
Cheers

joshbaker
Автор

Thank you Jack for all the special videos on React. I really hope and pray for the good health, prosperity and well-being of you and your family.

AJ-swqi
Автор

Got your channel recommended, and I’m blown away by your quality content. Well explained, good sound, not too basic. All in all great content. Keep it up!
And to you and your wife - get well soon!

snakeplisken
Автор

Stay strong brother! God bless you and your wife!

kiranearle
Автор

Thank you so much Jack.
I've been using swr for a while but didn't know about these hacks.
After watching the video, I was concerned about the Web Worker example so I went experimenting. I found that, the swr version of this example can also be written like this:
<Button
onClick={() =>
mutate(() => multiplyNumbers({ a: valueA, b: valueB }), {
revalidate: false,
})
}
>
Multiply
</Button>
That is, the mutate function from calling useSwr also accepts a callback fn that returns a promise.

Thanks again for this video.

justice
Автор

You are helping a lot of junior/senior reactjs devs around the world. I just wanted to so my appreciation for your work. Thanks.

belmo_
Автор

Very nice walkthrough, Jack. I wish you and your family the best ❤️

Norfeldt
Автор

I just started with react-query and this video is gold. Thank you, thank you, thank you 😊

marinagheorghe
Автор

I love you Jack!!! Your video content covers everything that is typically not available for free. Moreover, we get an insight of mindset of an experienced engineer. I will pray for you and your family in my Friday prayer!!

awaisahmad
Автор

Jack your videos have been an inspiration to me and I wouldn't have been able to make this huge career transition into Web Development if not for coders like you who post these free instructional videos for everyone. I'm 41 and just started my first Web Development job 3 months ago. I've wanted to start making youtube videos so I too could give back something to this community that has helped me make a career change that will affect my kids' future. Thank you so much Jack, and I wish you and your family the best.

Brian-ogkk
Автор

Man I found your channel a few days ago and I loved it. You're awesome! Like someone else said, make a course for senior developers, covering complex and big projects, where the starting point of the course is to actually download a big template file with structures similar to that we get in the industry, from git workflow to typescript, I would definitely pay at least $50 dollars for that and I'm just thousands of others would too. Good luck with everything!

dertuman
Автор

This is an awesome video! I worked with SWR on a project several months ago and it came to be very handy!

AndreasIosifelis
Автор

You're the man. I've been using react and react-query since their releases but learned something today!

tsooooooo
Автор

Really great video Jack! Thoughts go out to you and your wife.
I personally have worked with Apollo Client for global state management. Works really well!
Started out with Redux toolkit, but had to optimize bundlesize and this was a straightforward solution, as I already used Apollo Client for data fetching.

LarsEjaas
Автор

Happy to see you were able to find some time to produce another informative video. I wanted to let you know I'm giving blood Thursday. I do it once a year, but now after watching the first few minutes of your video I'm considering doing it more often. Stay strong Jack, the world needs more men like you. ❤to your family.

thehaptiK
Автор

Respect for providing the article link in the description. Also, thank you for these informative videos!

hasanmothaffar
Автор

This is so out of the box and imaginative. Awesome

avneet
Автор

Such a good tutorial. It's amazing to see how things got improved in React world in last 5 years

samithafernando
Автор

Prayers for you guys. Thank you for the content and service you continue to provide 🙏🏾

teflonhav