@rbxts/react-query

Jan 2026 – Mar 2026 · TypeScript, roblox-ts, ReactJS

www.npmjs.com · github.com

Port of @tanstack/react-query for roblox-ts, published on npm.
I made it for my own games since there wasn't a proper way to fetch, cache and mutate async data in @rbxts/react components.

Features

  • useQuery with stale time, retries (exponential backoff), refetch intervals, select, initial & placeholder data
  • useMutation with retries and onSuccess / onError / onSettled callbacks
  • useInfiniteQuery for paginated data
  • QueryClient: invalidateQueries, setQueryData, prefetchQuery, fetchQuery and per-query defaults

Available on npm here (v2 is in beta) and the source code on GitHub here