flutter_query 0.0.14
flutter_query: ^0.0.14 copied to clipboard
A new Flutter package project.
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.