Kingkor Roy Tirtho
68e60c1914
feat: safe setState for builders, separate cache box for query and infinite query and update state before _operate to indicate loading state
2023-02-23 12:37:45 +06:00
Kingkor Roy Tirtho
842a549356
refactor: remove KyeType and use String for queryKey and mutationKey
2023-02-23 11:43:08 +06:00
Kingkor Roy Tirtho
6a90f847c9
feat: add mutation and mutation builder with example
2023-02-23 10:58:31 +06:00
Kingkor Roy Tirtho
83df0ba576
refactor: stale logic to separate mixin
2023-02-21 13:01:51 +06:00
Kingkor Roy Tirtho
783a2737b1
feat: infinite query listenable add and cache event stream
2023-02-21 12:47:34 +06:00
Kingkor Roy Tirtho
efa2c81505
feat: add infinite query builder with example
...
fix(query): updateQueryFn refetch when stale and update state of builders when widget is mounted
2023-02-21 12:03:45 +06:00
Kingkor Roy Tirtho
975f9eafe1
feat: new widget query listable builder
2023-02-16 13:05:23 +06:00
Kingkor Roy Tirtho
a85434a4db
fix: not updating queryFn on create query's old query and checking stale status after updating queryFn instead of storing the status before
2023-02-16 12:48:19 +06:00
Kingkor Roy Tirtho
091491966f
feat: working query builder, remove timeout from retryConfig
2023-02-16 12:37:35 +06:00
Kingkor Roy Tirtho
18584a3c57
feat: cache, client, query builder add and refreshOnQueryFnChange option
...
fix: retryer wrong logic
2023-02-14 21:50:06 +06:00
Kingkor Roy Tirtho
45b6f92316
feat: infinite query implementation
2023-02-11 13:05:59 +06:00
Kingkor Roy Tirtho
0cc7ae194b
refactor: directory restructure revamp
2023-02-10 22:15:31 +06:00
Kingkor Roy Tirtho
b304466d73
feat: initial query and retryer implementation
2023-02-10 22:11:33 +06:00
Kingkor Roy Tirtho
f632fe8403
feat: clean old junk
2023-02-10 19:08:30 +06:00
Kingkor Roy Tirtho
0af8190cf8
fix: state update on unmounted hook and infinite query cache refetch not working
2023-02-10 18:52:27 +06:00
Kingkor Roy Tirtho
02d11d2f46
fix: query, infinite_query fetching/refetching when offline
2022-12-16 21:52:25 +06:00
Kingkor Roy Tirtho
074175ed39
feat: add query and infinite query disk caching support
2022-12-15 15:43:40 +06:00
Kingkor Roy Tirtho
51cad70954
fix: mutation context param clashing with BuildContext
2022-12-14 15:01:45 +06:00
Kingkor Roy Tirtho
a7c03f891f
fix: refetchOnExternalDataChange isn't working #18
2022-12-14 14:06:40 +06:00
Kingkor Roy Tirtho
cd567efb95
feat: implement refetchOnApplicationResume and refetchOnWindowFocus
2022-10-08 12:44:59 +06:00
Kingkor Roy Tirtho
664e90e604
fix(base_query): onData callback getting called with null #17
2022-10-03 22:23:23 +06:00
Kingkor Roy Tirtho
e9c8b7903b
fix(fl_query_hooks): unneeded empty instances of query/mutation
...
fix(infinite_query): getNextPageParam & getPreviousPageParam non-null return required
2022-10-03 21:57:00 +06:00
Kingkor Roy Tirtho
8df1fc54c3
fix(InfiniteQueryJob): remove unneeded keepPreviousData property
2022-09-23 10:17:17 +06:00
Kingkor Roy Tirtho
03a053bba6
fix(fl_query_hooks): newest query/mutation/infinite-query instance not getting returned
2022-09-23 09:50:22 +06:00
Kingkor Roy Tirtho
e0c3d7f4ba
docs: update according to the new query bowl refactor
2022-09-22 22:26:44 +06:00
Kingkor Roy Tirtho
2b835505a3
refactor(QueryBowl): query bowl logic as a separate class instead of a stateful widget
...
feat: add QueryCache class for storing, updating, removing all the query/mutation/infiniteQueries
refactor(test): update tests according to new query bowl refactor
refactor(fl_query_hooks): update the hooks according to new query bowl refactor
2022-09-22 22:03:28 +06:00
Kingkor Roy Tirtho
f435f101c4
docs: add infinite query page
2022-09-19 12:20:48 +06:00
Kingkor Roy Tirtho
f47ca98472
feat(infinite-query): onData and onError listener support
2022-09-16 14:32:23 +06:00
Kingkor Roy Tirtho
6eb7b2a429
feat(infinite-query): add setInfiniteQueryData support
2022-09-14 13:04:55 +06:00
Kingkor Roy Tirtho
95b1837620
feat(infinite-query): add refetchPages, refetchOnStale, refetchOnMount support
2022-09-14 12:49:30 +06:00
Kingkor Roy Tirtho
61958c7d94
feat(infinite-query): add all the features of query in infinite query
...
Separated common logic of both `InfiniteQuery` and `Query` in a base class `BaseQuery` resulting in `InfiniteQuery` inheriting already having implemented features of `Query`
2022-08-24 21:47:13 +06:00
Kingkor Roy Tirtho
1452d7d79e
feat: add initial support for InfiniteQuery
...
Added new infinite query class with it's own builder widget and integration with query_bowl
The `cast` method used in mutation and query are now a mixin instead of BasicOperation property
2022-08-21 20:10:40 +06:00
Kingkor Roy Tirtho
462a7042fa
feat: add support for keepPreviousData & examples regarding this
2022-08-07 10:54:28 +06:00
Kingkor Roy Tirtho
6d2952ae6a
more tests added for Query
...
prefetchQuery support added
seperate methods for adding & removing listeners for events of both query & mutations
refetchInterval not working when used Query.fromOptions bug fixed
2022-07-28 12:01:37 +06:00
Kingkor Roy Tirtho
f0741045a5
query tests added
2022-07-20 12:21:18 +06:00
Kingkor Roy Tirtho
88841e71f8
Query & Mutation Builders now doesn't create a new instance
2022-07-12 03:15:44 +06:00
Kingkor Roy Tirtho
4afaa4b471
Separated vanilla flutter & the flutter_hooks version of the package 😢
...
CHANGELOGS created for both package
2022-07-08 03:48:04 +06:00
Kingkor Roy Tirtho
8563abf117
finalized for 1st release
2022-07-07 10:30:28 +06:00
Kingkor Roy Tirtho
afa9933c91
refetch on external data change support added
2022-07-05 09:28:43 +06:00
Kingkor Roy Tirtho
53fc86eac1
Docs: Front page Images added
...
QueryBuilder & useQuery onData, onError not working bugfix
2022-07-03 19:08:18 +06:00
Kingkor Roy Tirtho
78bb84e7b9
basic README Documentation added
...
doc comments for query bowl added
license, contribution guidelines & code of conduct added
2022-06-26 23:47:53 +06:00
Kingkor Roy Tirtho
ff8fa9eb15
removed unneeded query parameter from QueryTaskFunction
2022-06-26 15:03:23 +06:00
Kingkor Roy Tirtho
d8024714cd
removed dependOnQuery from beacuse of infinite renders
...
example created for various usecases with various features
hooks now use standard hook API instead of using Hook Class
variable query & mutation not working bug fix
mutation onMutate listeners not getting called bug fix
2022-06-24 12:51:27 +06:00
Kingkor Roy Tirtho
2ead7fd2be
refetchOnReconnect support added for Query
2022-06-22 21:52:13 +06:00
Kingkor Roy Tirtho
73711ee77d
Depended queries support added
2022-06-22 17:56:24 +06:00
Kingkor Roy Tirtho
8c53f1b0fe
files moved to src folder
...
added flutter_hooks support with example
2022-06-22 13:46:40 +06:00
Kingkor Roy Tirtho
e0c70d153f
Internal API change
...
now query & mutation share same base class
queries are now self-refetchable
queryJobs & mutationJobs now support dynamic key allowing dynamic Query/Mutation creation
query status & mutation status are now just on point & accurate
2022-06-21 17:16:06 +06:00
Kingkor Roy Tirtho
634bb3f912
Simple documentation added
...
Useful utility methods added in query_bowl
2022-06-20 14:27:54 +06:00
Kingkor Roy Tirtho
d7635abb0e
using valuekeys for keeping track of mounts in query & mutations
...
QueryBuilder & MutaionBuilder are now null proof
2022-06-20 12:28:37 +06:00
Kingkor Roy Tirtho
7d337e02da
mutation support added
...
multiple data, error/mutate listeners on query
2022-06-19 16:53:20 +06:00