Загрузка видео...

Не удалось загрузить видео

На главную

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

137,429 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля George Moller
George Moller2 лет назад

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
George Moller2 лет назад

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 🔮
Dominik 🔮2 лет назад

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
George Moller2 лет назад

Will do Dominik!

Фото профиля Akhil 17
Akhil 172 лет назад

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

Фото профиля George Moller
George Moller2 лет назад

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

Фото профиля Pavel Romanov
Pavel Romanov2 лет назад

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

Фото профиля MUIZ
MUIZ2 лет назад

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
Oury Tenguella2 лет назад

State colocation, right ?

Фото профиля Nikki Siapno
Nikki Siapno2 лет назад

Agree, important tip George!

Похожие видео