Why I always use react-query on my react apps

preview_player
Показать описание

My VSCode Extensions:
- theme: material community high contrast
- fonts: Menlo, Monaco, 'Courier New', monospace
- errors: Error Lens
- extra git help: Git Lens
- tailwind css intellisense
- indent rainbow
- material icon theme
- prettier & eslint
- ES7+ React Snippets
Рекомендации по теме
Комментарии
Автор

Omg just discovered this. Idk if I lived behind the moon or smth not finding this library sooner. It looks so good!

Thelukkest
Автор

Great video!, My first noob mistake was to try to use React-Query for "Everything", but the truth is that things like a login or analytic reporting requests should probably don't need to use it. So it's important to identify where this will give us a real benefit.

TheRcfrias
Автор

Oh thank god…you just solved an issue i have been looking for like an hour.❤❤❤

dhananjaysingh
Автор

simple example but gold explanation. thanks for sharing!

rhenaldkarrel
Автор

What about using a real-time databases like firebase? Is there any point in using react query with that? Firebase real-time database notifies of changes and gives the latest data to clients.

erik
Автор

Next13 seems to handle the server side fetching and loading states but for mutations(Post reqs) in client side components the tanstack query will keep on providing greatness still. React says it's the official fetching method now for react but it's unfinished I think, they should have provide an easy way to mutate data too, fetching wasn't a biggie after react query or swr anyways. Can you make a video where a client side component mutates data with prisma "in" the component?? I think it would provide a great value.

BarisPalabiyik
Автор

Hi I am still quite confused. Where do you set the todo as a query key, and it is a github repository for this video? I couldn't find it. Thank u

YangJimmy-gono
Автор

Hi Cody, great video. i haven't got to use Nextjs yet, but I have used React and React-Query together, when using React-Query with Nextjs does that mean you don't have to fetch data with getServerSideProps function or am I way off the mark

SahraClayton
Автор

This was exactly what I was looking for. WHY to use react query

brentryczak
Автор

Nice video!

I guess most of the companies out there still use more tradicional approaches like redux and all?

But they also want to hire someone that keeps up with new technologies, right?

I don't know which approach to use in my portfolio projects...

henriqueb
Автор

Want to ask does react query with redux tool kit Overkill?

yfd
Автор

do you use react context or redux toolkit for state management?

nikako
Автор

Your video content is always full of knowledge.

I want to know, can react query work hand in hand with remix?

teknolovedigital
Автор

Is react-query + redux toolkit a good combination?

genephillip
Автор

React query will keep items in cache as long as you don’t fetch another item with a different key. So basically if you’re on the same page but change pages and it runs another query it’ll replace that cache with the new results.

gixxerblade
Автор

10:35 you return previous todos if the mutate is unsuccessful

gixxerblade
Автор

React query is god like, took me a week to get used to it, and now I never look back

eshw
Автор

If you add a random id to the new todo how can a user instantly delete it after because it has a incorrect id dont you have to get the id from the db for each item?

omarkraidie
Автор

Great video DevJunkie, am also using react-query, and am facing an issue, I want to "await" a queryKey variable... like a token from Oauth... when the component is initialized Oauth is triggered but react-query doesnt wait the auth.token (for instance)to be available before making the fetch... so the token in fetch() is first null, next undefined and THEN defined... it causes errors in the console... can tell me whats happening ?

khaledsanny
Автор

React Query Vs RTK Query which one is better?

sumanthprabhu