Kingkor Roy Tirtho
1cad748024
chore: fix InfiniteQueryState.lastPage empty element exception on initialization
2023-10-06 12:36:44 +06:00
Kingkor Roy Tirtho
ab1479c0eb
feat(infinite_query): add isLoadingNextPage & remove isLoadingPage
2023-10-06 11:15:59 +06:00
Kingkor Roy Tirtho
9581e276b9
fix(query): isLoading & isRefreshing not working as expected
2023-10-06 10:36:55 +06:00
Kingkor Roy Tirtho
b512a5da06
fix(mutation): isMutating not working
2023-10-06 10:23:01 +06:00
Kingkor Roy Tirtho
ea6b3f7b96
chore(release): publish packages
...
- [email protected] +1
2023-09-09 16:41:17 +06:00
Kingkor Roy Tirtho
8b728b4405
fix(fl_query_hooks): upgrade flutter_hooks version & dart sdk constrain
2023-09-09 16:38:15 +06:00
Kingkor Roy Tirtho
572e5e4384
chore(release): publish packages
...
- [email protected]
- [email protected]
- [email protected]
- [email protected]
2023-09-09 16:34:10 +06:00
Kingkor Roy Tirtho
6c544922a3
fix: mutation onSuccess doesn't refresh all pages of infinite queries
2023-09-09 15:27:54 +06:00
Kingkor Roy Tirtho
f40260a348
fix: no refreshing stale queries with error
2023-09-09 15:27:22 +06:00
Kingkor Roy Tirtho
f27e5f8162
fix(devtools): no wrapping child inside SizedBox.shrink
2023-09-09 15:26:45 +06:00
Kingkor Roy Tirtho
26419418f2
chore(release): publish packages
...
- [email protected]
2023-06-28 17:35:19 +06:00
Kingkor Roy Tirtho
3a8455f57b
fix(fl_query_connectivity_plus_adapter): lower the sdk constrains
2023-06-28 17:34:48 +06:00
Kingkor Roy Tirtho
be71f17d43
chore: add noopConnectivityAdapter
2023-06-24 22:27:17 +06:00
Kingkor Roy Tirtho
4dbdfff8b6
chore(release): publish packages
...
- [email protected]
- [email protected]
- [email protected]
- [email protected]
2023-06-24 22:17:43 +06:00
Kingkor Roy Tirtho
c0edb90896
refactor: show devtools only in debug mode
2023-06-24 13:06:37 +06:00
Kingkor Roy Tirtho
5bb89ed1fb
refactor: move devtools to separate library
2023-06-23 23:00:10 +06:00
Kingkor Roy Tirtho
e0c5282e19
chore: fix import errors
2023-06-23 22:41:04 +06:00
Kingkor Roy Tirtho
a40dca73b5
feat: resolve and resolveWith helper support
2023-06-23 22:40:20 +06:00
Kingkor Roy Tirtho
8c7b19c0e5
feat: refresh on network state change and cancel retry when offline
2023-06-21 22:10:39 +06:00
Kingkor Roy Tirtho
72ca4cece4
feat: connectivity adapter package for connectivity_plus
2023-06-21 21:39:31 +06:00
Kingkor Roy Tirtho
7dd9036e69
chore: more comment and 1 level deep BuildContext
2023-06-10 12:12:49 +06:00
Kingkor Roy Tirtho
c6e484637a
chore: infinite query comments
2023-06-10 11:45:17 +06:00
Kingkor Roy Tirtho
bc52de5303
feat: add ability to get, refresh query and infinite queries using prefix
2023-06-09 22:51:50 +06:00
Kingkor Roy Tirtho
1b1f1cdc93
feat: add devtools (WIP)
2023-05-29 13:33:09 +06:00
Kingkor Roy Tirtho
0fa58dcb84
chore: update deps
2023-05-29 08:45:38 +06:00
Kingkor Roy Tirtho
f30a001a8b
chore: update versions and gen changelogs
2023-03-12 11:07:00 +06:00
Kingkor Roy Tirtho
f8895e3381
feat(QueryClientProvider): add config parameters and override-able client parameter
2023-03-12 11:03:12 +06:00
Kingkor Roy Tirtho
767db4a725
chore: remove direct src import of flutter foundation
2023-03-05 17:17:54 +06:00
Kingkor Roy Tirtho
c65744377d
chore: generate changelogs
2023-03-05 17:12:04 +06:00
Kingkor Roy Tirtho
6b277647b7
chore: bump version for pre release
2023-03-05 16:47:12 +06:00
Kingkor Roy Tirtho
fbe1f9591a
chore: use local path to lib in examples
2023-03-05 15:01:22 +06:00
Kingkor Roy Tirtho
b7ff1c8abe
chore: remove unnecessary plugin registrant files
2023-03-05 13:37:39 +06:00
Kingkor Roy Tirtho
8d118dff7a
chore: remove unnecessary plugin registrant files
2023-03-05 13:35:57 +06:00
Kingkor Roy Tirtho
121c996903
chore: remove unneeded deps from lock files
2023-03-05 13:18:20 +06:00
Kingkor Roy Tirtho
5332bd16d3
fix(fl_query_hooks): fetch query when queryKey changes
2023-03-04 21:53:31 +06:00
Kingkor Roy Tirtho
0c819d4e11
refactor: more convenient ways customizing config
2023-03-02 18:51:50 +06:00
Kingkor Roy Tirtho
9e8959820f
fix(client): check for error out put in fetch query and infinite query and mutateMutation immediate resolve
2023-03-02 18:22:04 +06:00
Kingkor Roy Tirtho
64d661779a
fix: fetch query and infinite query resolving immediately without proper result
2023-03-02 12:38:16 +06:00
Kingkor Roy Tirtho
cf2550a290
fix(fl_query_hooks): query/mutation reset to initial memoized values on hot reload
2023-02-28 22:21:20 +06:00
Kingkor Roy Tirtho
f2a23b085c
feat: new next_page signature, query/mutation fn in notifier and safe update in use_updater
2023-02-26 13:51:40 +06:00
Kingkor Roy Tirtho
1ea9370570
feat: use function hooks instead of class hooks
2023-02-26 10:51:28 +06:00
Kingkor Roy Tirtho
d964216ee1
chore: remove unnecessary deps
2023-02-23 23:44:24 +06:00
Kingkor Roy Tirtho
c068c41b46
chore: use custom cache prefix for hooks example
2023-02-23 23:37:23 +06:00
Kingkor Roy Tirtho
72a4646af8
chore: remove _forbidden
2023-02-23 23:34:15 +06:00
Kingkor Roy Tirtho
383d0e0a85
feat: use mutation hook add
2023-02-23 23:33:56 +06:00
Kingkor Roy Tirtho
f9a5207403
feat: useInfiniteQuery hook add
2023-02-23 23:21:57 +06:00
Kingkor Roy Tirtho
7fabf44756
feat: useQuery hook with working example
2023-02-23 22:50:37 +06:00
Kingkor Roy Tirtho
5dde200c84
feat: safe cancellation of running operation on reset
2023-02-23 13:14:42 +06:00
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
6676f508ae
build: generated files update
2022-10-12 22:12:25 +06:00
Kingkor Roy Tirtho
cd567efb95
feat: implement refetchOnApplicationResume and refetchOnWindowFocus
2022-10-08 12:44:59 +06:00
Kingkor Roy Tirtho
f0d3bd36a7
chore: update generated configuration
2022-10-07 19:46:44 +06:00
Kingkor Roy Tirtho
2cd4f5b439
chore: bumped version for next release and generated CHANGELOG
2022-10-03 22:27:19 +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
d3766b2595
chore: example files update
2022-10-03 22:04:19 +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
bd22b87391
chore: bump version of both packages and generate CHANGELOG
...
docs(README): mention newest feature
2022-09-23 11:30:01 +06:00
Kingkor Roy Tirtho
fe0df69b6e
docs: add flutter hooks code for quick start and queries
2022-09-23 11:12:27 +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 and GitHub
33f716a165
Merge pull request #13 from KRTirtho/feat/separation-of-logic
...
`QueryBowl` as a separate class service
2022-09-22 22:11:22 +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
2a3ac29f64
feat(infinite-query): add useInfiniteQuery hook with example
2022-09-14 13:14: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
0c2eae1f11
docs: update mentions of react-query with tanstack-query
2022-08-11 09:49:17 +06:00
Kingkor Roy Tirtho
c514de57c7
Merge branch 'docs'
2022-08-07 14:04:34 +06:00
Kingkor Roy Tirtho
3b2e75272b
build: changelog update
2022-08-07 14:04:21 +06:00
Kingkor Roy Tirtho
c02f42a31a
build: bump versions for upcoming v0.2.0 & add changelog
2022-08-07 13:58:25 +06:00
Kingkor Roy Tirtho
96b8450357
docs: readme support me section
2022-08-07 13:32:53 +06:00
Kingkor Roy Tirtho and GitHub
4f76e791c2
Merge pull request #10 from KRTirtho/docs
...
Docs
2022-08-07 13:30:36 +06:00
Kingkor Roy Tirtho
bd70d2800f
Merge branch 'main' into docs
2022-08-07 13:09:55 +06:00
Kingkor Roy Tirtho
58674ab30a
docs: add dynamic query & mutation section
2022-08-07 13:09:19 +06:00
Kingkor Roy Tirtho
cdd1e96b2a
Merge branch 'main' into docs
2022-08-07 12:15:06 +06:00
Kingkor Roy Tirtho
a28cc2801c
chore: merge main
2022-08-07 12:14:56 +06:00
Kingkor Roy Tirtho
8eaa6b04d1
docs: add paginated-query section and update optimistc update section
2022-08-07 12:13:03 +06:00
Kingkor Roy Tirtho
462a7042fa
feat: add support for keepPreviousData & examples regarding this
2022-08-07 10:54:28 +06:00