正在加载视频...

视频加载失败

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

34,403 次观看 • 1 年前 •via X (Twitter)

9 条评论

George Moller 的头像
George Moller1 年前

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 的头像
KafKa1 年前

Debatable approach @TkDodo what do you think🥸

Muhammet Bozkaya 的头像
Muhammet Bozkaya1 年前

More tutorials with useQuery please

George Moller 的头像
George Moller1 年前

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

Teeldinho 的头像
Teeldinho1 年前

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 Destylator1 年前

useSuspenseQuery is enough...

Haradrim 的头像
Haradrim1 年前

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

George Moller 的头像
George Moller1 年前

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 Moller1 年前

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

相关视频