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

outdated

Hooks for Future and Stream inspired by riverpod AsyncValue.

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
0
pub points
0%
popularity

Publisher

unverified uploader

Hooks for Future and Stream inspired by riverpod AsyncValue.

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_hooks, freezed_annotation

More

Packages that depend on async_hooks