Man, I love this lib! ❤ Great overview, Kyle! Can't get enough of your videos. Man, please develop a small to mid size project showing how to organize the codebase with React Query alongside a state management library like Zustand.
I have just started working with React Query and it has been just an amazing experience. Still learning to get better at it
You're the best teacher on YouTube, your explanations are always clear and fast, thank you so much. What I don't like about solutions like this is all the pop-ins and excessive loading states. For us developers this is nice and efficient but for users it's distracting and overall bad UX. I like the server rendering approach of Next which is fast like static but interactive where needed. React itself seems to be going in that direction with server components. Exciting times for web developers!
thanks bro i was stuck in intergrating react query , we are always biggeners to new things and it just fixes all of my problems i have project that only enlisting them took 2 hours
This is very similar to Apollo Client, which was built for graphql. So nice to see good ideas spreading it through the community. :)
Thanks for this tutorial! It's very clear and concise: I am almost done migrating the front end of my project to react query thanks to you.
Sounds like using the cache and refetch in the background then update the state when we get a response can lead to a bad UX especially when fetching takes a relatively long time
I love TanStack Query too. I used it on a recent project. Well done Kyle. This is an extensive yet succinct overview.
Great tutorial. Well structured and easy to understand.
so just it's for promise's while wait and error state handling. I would have named it useWaitState or WWS (whileWaitState) , surprised there arnt primitives for this in every framework/library or that promises doesnt have a standard onWaiting member event as part of the js spec, it sounds like a pretty obvious convention to have with a language that uses callbacks and async in alot of it base.
timing couldn't be more perfect, was just about to move all calls to this
I was looking at react query yesterday and you come wit hthat video, thank you mate!
When we com back to posts list, it should show message that new posts are being refreshed or checked.
Great video. A small heads up, that getPost does not need to be a Promise. If your use case does not involve asynchronous operation, You can call normal function and still get all the benefits ✌️ You can even use React query as a mini state manager too 😅 so many use cases.
Do a genuine comparison between react query and swr , just skimming the swr docs gave me feel like optimistic updates might be better in swr
Awesome review
Great and helpful again! Thank you Kyle! :trophy-yellow-smiling: :face-red-heart-shape: :hand-pink-waving:
Ill be very happy if the crash course is ready
Finally ;) waited for this video! If you can do a video where you can show the different implementation of "with" react-query and "without" so we can see the true advantage
@_benjimouse_