Loading video...

Video Failed to Load

Go Home

❌ Don't pass props to multiple nested components in React. ✅ Instead use libraries like react-query to better handle server state.

137,429 views • 2 years ago •via X (Twitter)

10 Comments

George Moller's profile picture
George Moller2 years ago

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and video animations just like this one. Check them out ↓

George Moller's profile picture
George Moller2 years ago

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and video animations just like this one. Check them out ↓

Dominik 🔮's profile picture
Dominik 🔮2 years ago

It would be cool if you could recommend importing from '@tanstack/react-query' instead of just 'react-query'. We've moved to the TanStack umbrella over a year ago.

George Moller's profile picture
George Moller2 years ago

Will do Dominik!

Akhil 17's profile picture
Akhil 172 years ago

But using the same query inside dashboard will trigger another api call right?

George Moller's profile picture
George Moller2 years ago

Nope, it only triggers another api call if the data is not already in the cache.

Pavel Romanov's profile picture
Pavel Romanov2 years ago

Love this concept and react-query in general! First time I saw it was in this great article:

MUIZ's profile picture
MUIZ2 years ago

I use Redux for state management. React query look simpler and reduces redux broiler plate. Does react query works with React Native? Any cons I should be aware of?

Oury Tenguella's profile picture
Oury Tenguella2 years ago

State colocation, right ?

Nikki Siapno's profile picture
Nikki Siapno2 years ago

Agree, important tip George!

Related Videos