Introduction
react প্রজেক্টে dataFetch, reFetch, Caching, Pagination সহ এমন অনেক কাজ রয়েছে যেগুলোতে ReactQuery / TanStackQuery আমাদেরকে help করবে। এটি React এর Context API ব্যবহার করে কাজ করে থাকে।
নিচের ফিচারগুলো Tanstack Query / former React Query থেকে out of the box পাওয়া যাবে।
| Backend agnostic | Dedicated Devtools | Auto Caching |
|---|---|---|
| Auto Refetching | Window Focus Refetching | Polling/Realtime Queries |
| Parallel Queries | Dependent Queries | Mutations API |
| Automatic Garbage Collection | Paginated/Cursor Queries | Load-More/Infinite Scroll Queries |
| Scroll Recovery | Request Cancellation | Suspense Ready! |
| Render-as-you-fetch | Prefetching | Variable-length Parallel Queries |
| Offline Support | SSR Support | Data Selectors |