GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dzulfanf/tanstack-query: Interactive playground to learn TanStack Query visually — query, mutation, cache, optimistic updates, pagination, and infinite scroll.

BranchesTags
Open more actions menu

Latest commit

 

History

43 Commits
43 Commits

Folders and files

NameName
Last commit message
Last commit date
docs/superpowers
docs/superpowers
 
 
public
public
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.oxlintrc.json
.oxlintrc.json
 
 
README.md
README.md
 
 
components.json
components.json
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.app.json
tsconfig.app.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.node.json
tsconfig.node.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

Server State Playground

An interactive playground for learning TanStack Query visually. Each example lets you trigger real network requests and observe the full data lifecycle — status transitions, cache behavior, optimistic updates, and more — all in one place.

Live demo: tanstack-query.dzulfan.dev


Examples

Example Concepts
Query useQuery, pending/success/error states, manual refetch()
Mutation useMutation, write lifecycle, invalidateQueries
Cache staleTime, gcTime, fresh → stale countdown, cache hits
Optimistic Update onMutate, snapshot & rollback, cancelQueries
Pagination keepPreviousData, per-page query keys, instant transitions
Infinite Query useInfiniteQuery, getNextPageParam, fetchNextPage

Each example includes:

  • An interactive playground to trigger fetches, mutations, and errors
  • A live Query Inspector showing real-time query state
  • An Event Timeline tracing what happened and when
  • Embedded code snippets for the hook and API layer
  • An Engineering Insight explaining the problem, solution, and tradeoffs

Tech Stack

  • TanStack Query v5 — server state management
  • React 19 + TypeScript
  • Vite 8 — build tool
  • Tailwind CSS v4 + shadcn/ui — styling
  • React Router v6 — routing
  • JSONPlaceholder — mock API

Running Locally

git clone https://github.com/dzulfanf/tanstack-query.git
cd tanstack-query
npm install
npm run dev

Open http://localhost:5173.

About

Interactive playground to learn TanStack Query visually — query, mutation, cache, optimistic updates, pagination, and infinite scroll.

tanstack-query.dzulfan.dev

Topics

portfolioreactreact-queryshadcn-utailwindcsstanstack-querytypescriptvite

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.