async_hooks 0.3.1 async_hooks: ^0.3.1 copied to clipboard
Hooks for Future and Stream inspired by riverpod AsyncValue.
0.3.1 #
- fix: Handling snapshot errors.
0.3.0 #
- fix!: Passing T to all variants and AsyncSnapshot in fromSnapshot constructor.
0.2.0 #
- refactor: Renamed
AsyncValue
,AsyncLoading
,AsyncData
andAsyncError
types toPromise
,PromiseLoading
,PromiseData
andPromiseError
to avoid name clash withriverpod
. - feat: Added
Promise.value
getter.
0.1.1 #
- fix: Passing
T
type toAsyncData
, so it's no always of typedynamic
.
0.1.0 #
- Added
AsyncValue
type. - Added
useFutureValue
hook. - Added
useStreamValue
hook.