T
TanStack7mo ago
rare-sapphire

General React-Query Patterns

Hi all, I'm pretty new to React and I've just started learning about React Query but I'm a bit confused on general patterns and how to implement it alongside other core react hooks. Is there any go to guide/source any of you have found extremely helpful? I'm currently going through the docs whilst trying to hack together a remake of a simple project just so I can get a feel for things. At the moment I feel like I'm just hacking things together without much structure but there's so many ways to achieve the same outcome. Is React query a complete replacement for UseReducer + Context combo?
4 Replies
deep-jade
deep-jade7mo ago
The Docs, Tkdodos Blog (that's linked from the docs as well) and the ui.dev course.
broad-brown
broad-brown7mo ago
⬆️ I mean I write the docs, the blog and I made the content for the course, so I'm biased 😂
broad-brown
broad-brown7mo ago
but yeah, if you like to explore the lib on your own, start with reading the guides in the docs, then the blog: https://tkdodo.eu/blog/practical-react-query It has 30 parts already 🤯. But it's a bit unstructured. I just write what comes to my mind, and the parts are pretty isolated. If you want the full from zero to really good understanding, the query.gg course has lessons where each one builds on top of each other.
Practical React Query
Let me share with you the experiences I have made lately with React Query. Fetching data in React has never been this delightful...
rare-sapphire
rare-sapphireOP7mo ago
Thank you, your blogs are awesome btw. I ended up stumbling across the practical react query stuff shortly after posting. I went ahead and got the query.gg course too and it has really put things into perspective. I’m quite new to programming as a whole and I keep jumping into the bad habit of asking why constantly so I end up consuming anything and everything haha. I think I have now found my sources of truth. Thanks! Thank you for the suggestions

Did you find this page helpful?