Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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

137,429 görüntüleme • 2 yıl önce •via X (Twitter)

10 Yorum

George Moller profil fotoğrafı
George Moller2 yıl önce

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 profil fotoğrafı
George Moller2 yıl önce

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 🔮 profil fotoğrafı
Dominik 🔮2 yıl önce

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 profil fotoğrafı
George Moller2 yıl önce

Will do Dominik!

Akhil 17 profil fotoğrafı
Akhil 172 yıl önce

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

George Moller profil fotoğrafı
George Moller2 yıl önce

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

Pavel Romanov profil fotoğrafı
Pavel Romanov2 yıl önce

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

MUIZ profil fotoğrafı
MUIZ2 yıl önce

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 profil fotoğrafı
Oury Tenguella2 yıl önce

State colocation, right ?

Nikki Siapno profil fotoğrafı
Nikki Siapno2 yıl önce

Agree, important tip George!

Benzer Videolar