async_hooks 0.3.3 copy "async_hooks: ^0.3.3" to clipboard
async_hooks: ^0.3.3 copied to clipboard

Hooks for Future and Stream inspired by riverpod AsyncValue.

0.3.3 #

  • feat: Upgraded freezed and freezed_annotation packages to 2.x.x.

0.3.2 #

  • fix: Fixed promise for nullable types.

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 and AsyncError types to Promise, PromiseLoading, PromiseData and PromiseError to avoid name clash with riverpod.
  • feat: Added Promise.value getter.

0.1.1 #

  • fix: Passing T type to AsyncData, so it's no always of type dynamic.

0.1.0 #

  • Added AsyncValue type.
  • Added useFutureValue hook.
  • Added useStreamValue hook.
0
likes
110
pub points
0%
popularity

Publisher

unverified uploader

Hooks for Future and Stream inspired by riverpod AsyncValue.

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_hooks, freezed_annotation

More

Packages that depend on async_hooks