v1.0.0-alpha.1
KRTirtho
released this
06 Mar 16:22
·
30 commits
to new-architecture
since this release
BREAKING CHANGES
- The Jobs API has been disabled. So there's no
QueryJob
,MutationJob
andInfiniteQueryJob
anymore. Instead, you can use theQueryBuilder
,MutationBuilder
andInfiniteQueryBuilder
directly - Some of the classes were renamed to more mature names
QueryBowlProvider
->QueryClientProvider
QueryBowl
->QueryClient
- The unnecessary
getPreviousPageParam
is now removed fromInfiniteQuery
getNextPageParam
has been renamed tonextPage
- Also,
fetchNextPage
has been renamed tofetchNext
Query
andInfiniteQuery
'ssetQueryData
has been renamed tosetData
and it now accepts data directly instead of a call back function- useForceUpdate hook is now removed from the package
- Finally,
QueryClient
's unneededprefetchQuery
method was eradicated
Features
- add infinite query builder (efa2c81)
- add mutation and mutation builder (6a90f84)
- add query and infinite query disk caching support (074175e)
- add Cache, Client, QueryBuilder widget and refreshOnQueryFnChange support for queries (18584a3)
- InfiniteQuery implementation (45b6f92)
- add InfiniteQueryListenable widget and cache event stream (783a273)
- add Query and Retryer (b304466)
- infinite query's nextPage method (f2a23b0)
- new QueryListableBuilder widget (975f9ea)
- safe cancellation of running operation on reset (5dde200)
- safe setState for builders, separate cache box for query and infinite query (68e60c1)
- add usMutation hook (383d0e0)
- add useInfiniteQuery hook (f9a5207)
- add useQuery hook (7fabf44)