- auto caching
- data are in sync across multiple Hooks.
- ability to combine the same multiple network requests (determined by
dataQueryKey
) into a single one. - ability to avoid race conditions.
- reducing the number of render times as much as possible.
- freshness of data are guaranteed (depends on passed
options
object). - can also be used to share global state as it has been built using callbacks and guarantee to re-render only affected components.
Client side asynchronous remote state management library. Library's syntaxes and functionalities are very similar to and inspired by react-query
library. RDQ makes network requests and cache the results along with the dataQueryKey
.
-
1.0.0
and2.0.0
were deprecated. Because of unexpected Error. -
2.0.2
,2.0.3
and2.0.4
were unpublished. Because I made a small change and published it without testing. As the result, it causes the Error. I will try not to happen like that again. -
2.0.9
- Fixed setting data ofuseInfiniteDataQuery
viasetQueryData
andsetQueriesData
. Read API Reference ofuseInfiniteDataQuery
. -
2.1.4
integrated with TypeScript. - From
2.1.9
, you can import TypeScript types. -
2.2.0
- From this version, giving you the flexibilities to describe whatdata
type will be returned and how the shape of thecontext
will be look like. And more... -
2.3.0
- added new status 'isSuccess'Please install the latest version
Read more documentation here.