馃殌 React Query Playground - Open Source!
A POC to help discuss "React Query invalidation" with colleagues turned into a super useful playground! 馃槃
In short, it鈥檚 an interactive space to explore React Query features with hands-on examples. I鈥檓 talking refetching strategies, suspense mode, pagination, invalidation, testing... and the best part? No need to set up sandboxes or anything like that!
It鈥檚 open source and super easy to run locally:
git clone https://github.com/cassiorsfreitas/react-query-playground.git
cd react-query-playground
npm install
npm start
It is highly recommended to explore the examples with the TanStack DevTools enabled. This will give you deeper insights into what's happening under the hood, such as query states, cache updates, and background refetching, making it easier to understand how React Query works in practice.
I鈥檇 love for you to check it out, and if you have any ideas or improvements, feel free to contribute!
Prod: https://react-query-playground.cassiorsfreitas.com/
Repo: https://github.com/cassiorsfreitas/react-query-playground