1- # React Query
1+ # ⚛️ React Query 🐧
22
33<a href =" https://travis-ci.org/tannerlinsley/react-query " target =" \_parent " >
44 <img alt =" " src =" https://travis-ci.org/tannerlinsley/react-query.svg?branch=master " />
@@ -20,20 +20,20 @@ Hooks for managing asynchronous data in React
2020Tools for managing promises or normalized client stores/caches are plentiful these days, but most of these tools:
2121
2222- Don't dedupe network operations that could be made in a single request
23- - Force denormalization or custom caching strategies on your data
23+ - Force normalized or object/id-based caching strategies on your data
2424- Don't invalidate their cache often enough or don't offer sane defaults to do so
2525- Because of this ☝️, they require imperative interaction to invalidate or manage their caches
26- - Don't perform optimistic updates across the network
26+ - Don't perform optimistic updates, or require setup to know when to perform them
2727
2828## The solution
2929
3030React Query contains a set of hooks that attempt to address these issues. Ouf of the box, React Query:
3131
3232- Dedupes similar requests at the application level
3333- Caches response data across similar requests
34- - Optimistically updates cached requests
34+ - Optimistically updates requests in the background
3535- Automatically manages and garbage collects unused cache data
36- - Supports retries and even exponential/custom back-off delays
36+ - Supports retries and exponential/custom back-off delays
3737- Provides a declarative API for invalidating and managing cached responses.
3838- Built with and for React hooks
3939- 7kb gzipped
0 commit comments