Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

137,429 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von George Moller
George Mollervor 2 Jahren

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 ↓

Profilbild von George Moller
George Mollervor 2 Jahren

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 ↓

Profilbild von Dominik 🔮
Dominik 🔮vor 2 Jahren

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.

Profilbild von George Moller
George Mollervor 2 Jahren

Will do Dominik!

Profilbild von Akhil 17
Akhil 17vor 2 Jahren

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

Profilbild von George Moller
George Mollervor 2 Jahren

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

Profilbild von Pavel Romanov
Pavel Romanovvor 2 Jahren

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

Profilbild von MUIZ
MUIZvor 2 Jahren

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?

Profilbild von Oury Tenguella
Oury Tenguellavor 2 Jahren

State colocation, right ?

Profilbild von Nikki Siapno
Nikki Siapnovor 2 Jahren

Agree, important tip George!

Ähnliche Videos