flutter_query 0.1.2 copy "flutter_query: ^0.1.2" to clipboard
flutter_query: ^0.1.2 copied to clipboard

outdated

A library for asynchronous data fetching and caching

Flutter Query #

An unfinished work in progress project inspired from React Query

Any contributors are welcome to join currently and should reach out

Hooks for fetching, caching and updating asynchronous data in Flutter

The goal of this project is to have a parallel api to the react-query (same hooks, function signatures, etc.) but also including dart/flutter idioms and familiar patterns

There isn't any documentation yet but the api is similar enough that you can reference https://react-query.tanstack.com/docs/api for now

State of implementation #

Hooks (Unfinished) #

useQuery and useInfiniteQuery are about 80% implemented. usePaginatedQuery and useMutation are missing. Currently the features missing are setting initialData, enabling and disabling queries, refetchSettings, and retrySettings.

QueryCache (Unfinished) #

QueryCache is about 50% implemented. You can currently invalidateQueries(), clear(), fetchQuery(), watchQuery(), createQuery(), and getQueryByKey().

QueryObserver (Unfinished) #

QueryObserver is very minimal currently. The biggest thing missing is the stale/revalidation system. Right now it essentially is used to create/find a query and setup a listener for the hooks.

18
likes
0
pub points
56%
popularity

Publisher

verified publisherflutterquery.com

A library for asynchronous data fetching and caching

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_hooks, provider, rxdart

More

Packages that depend on flutter_query