TanStack Query

Frontend

TanStack Query is a library for fetching and caching server data, and I use it in React apps that work with a database.

How I use TanStack Query

It keeps data in memory, refreshes it when needed and doesn't send the same request over and over.

The client gets an app where screens open faster, because data that's already loaded shows up immediately while a fresh copy arrives in the background. The database gets fewer unnecessary requests, which matters once more people use the app.

In practice I use key-based caching, refetching after changes (invalidation), loading and error states, and pagination for long lists. When a user saves a form, the list updates by itself without reloading the whole page.

I choose it for dashboards and data-heavy lists, alongside React and Supabase. For state that only lives in the browser, such as filters or an open menu, I use Zustand.

Used in: Protokol Alert, gradovi.rs, Laser Wood configurator.

Projects using TanStack Query

Websites and apps I built where TanStack Query was used.

  • Protokol Alert — Expiry Date Tracking SaaS

    Protokol Alert — Expiry Date Tracking SaaS

    My own SaaS for tracking product expiry dates in retail. A worker scans the barcode with a phone and enters the date, and the system sends alerts before expiry and shows what to return to the supplier, put on sale or take off the shelf. It consists of a worker app (PWA), an admin panel for stores, suppliers, reports and billing, a backend API with automatic expiry checks, and an Android app. Many stores and companies run in one system, and each sees only its own data. In production since 1 April 2026, tracking about 3,300 products.

  • gradovi.rs — Business Directory with Microsites

    gradovi.rs — Business Directory with Microsites

    My own platform: a business directory for the cities and municipalities of Serbia. A business signs up and gets its own microsite with a description, gallery, opening hours and contact form, and visitors find it by searching by city and category. Besides the free tier there are paid plans with more photos, reviews, visit analytics and a featured spot in the category, with up to 35% off for paying in advance. It has an admin panel for businesses, moderated reviews, invoices and payment processing. About 310 indexed pages, built with React and Supabase with 25 server functions.

  • Laser Wood Design — Price Configurator and Storefront

    Laser Wood Design — Price Configurator and Storefront

    A website with a configurator for Laser Wood Design from Pančevo, Serbia, a workshop making laser-engraved signs, keychains and 3D letters. The customer picks the material, size, model and LED lighting, sees a live preview of the sign and gets the price instantly, then sends an inquiry and downloads a PDF quote. The price is calculated on the server, so it always matches the workshop's price list. From the admin panel the owner manages materials and prices, the gallery, reviews and FAQ and tracks incoming inquiries. Built with React and Supabase, with automated tests and code checks on every change.

Frequently asked questions about TanStack Query

What is TanStack Query (React Query)?

TanStack Query, formerly known as React Query, is a library that manages server data in an app: it fetches, caches and refreshes data and tracks errors. That removes the need to hand-write logic for loading and refetching data.

Do I need TanStack Query if I use Zustand?

Yes, if the app works with server data, because TanStack Query and Zustand solve different problems. TanStack Query handles data from the database and APIs (caching and refreshing), while Zustand handles browser state such as a cart, filters or settings.

Do you use TanStack Query in your projects?

Yes, I've used it in Protokol Alert, gradovi.rs and the Laser Wood configurator to fetch and cache data. As a result screens open faster and data refreshes by itself after changes.

How much does a website or app built with TanStack Query cost?

It depends on the type of project: 3-in-1 SaaS Platform (Web + Android + Custom) from €7,000; Custom Web Application from €500; Price Configurator for Your Website from €410. These are starting prices; you get the final price and timeline in a written offer by email.

All skills →