use_request 0.0.13
use_request: ^0.0.13 copied to clipboard
A Flutter useRequest-style async request management library based on dio, flutter_hooks, and Riverpod.
0.0.13 #
- Fix: clear both
loadingandloadingMoreon cancel, and make Hook/Riverpod consistently support no-params requests across auto-run,refreshDeps, polling, focus refresh, and reconnect refresh. - Fix: remove duplicate Riverpod auto requests when
refreshDepsandreadyreplay overlap, and letUseRequestBuilder/UseRequestMixinrender notifier state on the first frame instead of a synthetic empty state. - Fix: harden scheduler and cache utilities, including correct
Debouncer.maxWait, non-cancelling leading debounce futures, correctThrottlerbehavior forleading:false, cancellable retry backoff, pending-cache overwrite safety, andUseRequestOptions.copyWith()explicit null clearing. - Test: add Hook, Riverpod, debounce, throttle, retry, cache, and options contract tests for the above edge cases.
0.0.12 #
- Fix: hydrate fresh cache into Hook and Riverpod state on the first frame, so pages that remount can render cached data immediately instead of flashing default values before auto requests run.
0.0.11 #
- Fix: pending cache subscribers now receive the in-flight result in both Hook and Riverpod implementations, instead of reusing the Future without updating local state.
0.0.10 #
- Fix:
refreshDepsnow triggers auto refresh even when last/default params isnull(no-params service), aligning with ahooks.
0.0.9 #
- Fix: refreshDeps change detection now survives list reuse/mutation by hashing deps and copying snapshots.
- Fix: refreshDeps changes while
ready=falseare replayed onceready=true(Hook + Riverpod). - Fix: Riverpod refreshDeps initial trigger actually fires (no pre-seeded deps).
0.0.8 #
- Fix: allow
refresh()to reuse a previousnullparams entry instead of throwing (both Hook and Riverpod).
0.0.7 #
- Example: add an inline Quick Start snippet in
example/lib/main.dartso pub.dev can render a meaningful Example tab.
0.0.6 #
- Align docs with implementation: make
UseRequestOptionstimeouts effective whenTParams=HttpRequestConfig. - Add
uploadFile/downloadFilealiases toDioHttpAdapterto match README examples. - Unify
readysemantics between Hook and Riverpod (ready=false gates auto/polling, manual run still works). - Fix example widget test to reflect the current demo app.
0.0.5 #
- Optimize auto-request logic: allow auto-trigger when
defaultParamsis null (providedmanualis false). - Docs: add minimalist usage example (Zero Configuration).
0.0.4 #
- Reformat source to satisfy
dart formatand static analysis. - Upgrade dependencies to latest supported versions (
flutter_hooks,flutter_riverpod), keeping Riverpod v3 compatibility via legacy API.
0.0.2 #
- Implement active-key single-state semantics for
fetchKey(stale key results no longer update state). - Fix
Debouncerso new calls cancel previous pending futures instead of leaving them hanging. - Align Hook and Riverpod behaviors (retry callbacks, polling control, cancel semantics, cache consistency).
- Improve polling lifecycle: ready/manual gating, visibility pause/resume on Web, and optional
pollingRetryIntervalauto-restore. - Rework
DioHttpAdapter.requestto support per-request timeouts and merged headers/query. - Enhance example demos (interactive polling controls, sidebar scroll fix, JSONPlaceholder PUT/PATCH safe id).
- Docs/metadata: add bilingual README, pub badges, topics, and Flutter CI workflow.
0.0.1 #
- Initial release.