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

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

На главную

⚛️ How to make context scoped query hooks in React ↓

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

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

Фото профиля 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 90+ video tutorials just like this one. Check them out ↓

Фото профиля KafKa
KafKa2 лет назад

Debatable approach @TkDodo what do you think🥸

Фото профиля Muhammet Bozkaya
Muhammet Bozkaya2 лет назад

More tutorials with useQuery please

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

Will do I love react-query! if you want the BEST course out there on it I suggest

Фото профиля Teeldinho
Teeldinho2 лет назад

Interesting approach. 🤔 What are the pros and cons of this? How then do we get those error & loading states in some child component N, if we really need them? Finally, how does it scale & look like when you have a list of useQuery wrappers?

Фото профиля Konan Destylator
Konan Destylator2 лет назад

useSuspenseQuery is enough...

Фото профиля Haradrim
Haradrim2 лет назад

Isn't this what suspense is for? Kind of defeats the purpose of using react-query in this case.

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

This example focuses on components that use the query hook data from the cache, in that case there is no loading/error state as the data is already there.

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

I don't think is over engineer tho, why do you think that? curious to hear your thoughts

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