Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

34,403 Aufrufe • vor 1 Jahr •via X (Twitter)

9 Kommentare

Profilbild von George Moller
George Mollervor 1 Jahr

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 ↓

Profilbild von KafKa
KafKavor 1 Jahr

Debatable approach @TkDodo what do you think🥸

Profilbild von Muhammet Bozkaya
Muhammet Bozkayavor 1 Jahr

More tutorials with useQuery please

Profilbild von George Moller
George Mollervor 1 Jahr

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

Profilbild von Teeldinho
Teeldinhovor 1 Jahr

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?

Profilbild von Konan Destylator
Konan Destylatorvor 1 Jahr

useSuspenseQuery is enough...

Profilbild von Haradrim
Haradrimvor 1 Jahr

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

Profilbild von George Moller
George Mollervor 1 Jahr

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.

Profilbild von George Moller
George Mollervor 1 Jahr

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

Ähnliche Videos