RefetchType:active allows you to refetch invalidated queries when that query is mounted anywhere in the UI.
It helped me solve a nasty bug in my work project.
#reactquery #tanstackquery
RefetchType:active allows you to refetch invalidated queries when that query is mounted anywhere in the UI.
It helped me solve a nasty bug in my work project.
#reactquery #tanstackquery
Stop writing:
🔁 Repetitive fetch code
😵💫 Manual loading/error handling
🧊 No caching
Start using:
⚡ Built-in caching
♻️ Background refetch
📊 Devtools
📦 TanStack Query = Smart data fetching in React
#ReactJS #TanStackQuery #ReactQuery
Stop writing:
🔁 Repetitive fetch code
😵💫 Manual loading/error handling
🧊 No caching
Start using:
⚡ Built-in caching
♻️ Background refetch
📊 Devtools
📦 TanStack Query = Smart data fetching in React
#ReactJS #TanStackQuery #ReactQuery
#AWS #Amplify #TanStackQuery #TypeScript #WebDev
#AWS #Amplify #TanStackQuery #TypeScript #WebDev
Say goodbye to messy fetch calls and hello to elegant data management. #Vuejs #TanStackQuery
Say goodbye to messy fetch calls and hello to elegant data management. #Vuejs #TanStackQuery
In particular, it's a bit unclear to me when I should be using loaders and when I should stick the useQuery?
Also, where to store the auth token now so I can use it in both places?
In particular, it's a bit unclear to me when I should be using loaders and when I should stick the useQuery?
Also, where to store the auth token now so I can use it in both places?
I love using Suspense + TanstackQuery
I love using Suspense + TanstackQuery
Definitely worth a read!👇
🔗 tkdodo.eu/blog/react-q...
#ReactQuery #TanstackQuery #react
Definitely worth a read!👇
🔗 tkdodo.eu/blog/react-q...
#ReactQuery #TanstackQuery #react
"what's this palm tree doing here?"
*clicks palm tree*
"whaaaaaaaaaaaaaaat"
"what's this palm tree doing here?"
*clicks palm tree*
"whaaaaaaaaaaaaaaat"
📖 Learn more: tanstack.com/query/latest...
#ReactJS #TanStackQuery
📖 Learn more: tanstack.com/query/latest...
#ReactJS #TanStackQuery
Today I was able to solve a coworker’s data-fetching problem with a one-line config change because TQ has anticipated nearly every issue you could come across.
Today I was able to solve a coworker’s data-fetching problem with a one-line config change because TQ has anticipated nearly every issue you could come across.
If there are common objects that need to be passed around I would rather rely on the child component to use a custom hook to get it itself.
In this case all I need to pass down is the ID.
TanstackQuery will make sure I don't fetch stuff twice.
If there are common objects that need to be passed around I would rather rely on the child component to use a custom hook to get it itself.
In this case all I need to pass down is the ID.
TanstackQuery will make sure I don't fetch stuff twice.
Chez moi c'est soit dans l'URL, soit dans tanstackquery, soit dans un contexte car général (auth etc), soit géré en interne dans ma lib de composants.
Chez moi c'est soit dans l'URL, soit dans tanstackquery, soit dans un contexte car général (auth etc), soit géré en interne dans ma lib de composants.
It’s the perfect setup for building powerful apps quickly and efficiently! 🚀
#Svelte #SvelteKit #Supabase #TailwindCSS #tRPC #TanStackQuery #WebDev
It’s the perfect setup for building powerful apps quickly and efficiently! 🚀
#Svelte #SvelteKit #Supabase #TailwindCSS #tRPC #TanStackQuery #WebDev
tanstack.com/query/latest...
tanstack.com/query/latest...
github.com/cuculus-dev/...
github.com/cuculus-dev/...
2023-11-29 00:05:56
Tanstack Query の useQuery を自作してみた
#Program
#tanstackquery
#invalidate
#querykey
2023-11-29 00:05:56
Tanstack Query の useQuery を自作してみた
#Program
#tanstackquery
#invalidate
#querykey