context_watch 4.0.0 copy "context_watch: ^4.0.0" to clipboard
context_watch: ^4.0.0 copied to clipboard

A hassle-free way to watch for observable value changes within the `build` method.

4.0.0 #

Note: This release has breaking changes.

  • DOCS: README.md update.

  • BREAKING FEAT: goodbye, context.unwatch()!

    All cases of conditional .watch()'ing are now handled automatically.

3.3.0 #

  • FEAT: [context_watch] Removes the rxdart dependency, ValueStreams are still supported! (#14) by @passsy.
  • DOCS: removed outdated doc comment for Listenable.watch().

3.2.0 #

  • FEAT: async_listenable support integration.
  • FIX: proper handling of synchronous new value notifications during build().

3.1.1 #

  • DOCS: Updated README.md.

3.1.0 #

  • FEAT: Subscriptions are now kept throughout the Element re-parenting.

3.0.0 #

Note: This release has breaking changes.

  • BREAKING REFACTOR: Simplified the API. Every observable type now has only two extension methods: watch(), watchOnly().

2.0.4 #

  • DOCS: updated README.md.

2.0.3 #

  • REFACTOR: added topics to context_plus, context_ref, context_watch.

2.0.2 #

  • REFACTOR: pubspec.yaml: Updated homepage/repository with proper branch name.

2.0.1 #

  • REFACTOR: updated Flutter SDK constraint.

2.0.0-dev.5 #

  • Fixed initial frame handling

2.0.0-dev.4 #

  • Stream.watch() and Future.watch() now return AsyncSnapshot, just like StreamBuilder and FutureBuilder do
  • Performance improvements
  • Added example app with benchmarks
  • Extracted InheritedContextWatch into a separate package to make it possible to create context watchers for custom observable types

1.0.2 #

  • Updated flutter_lints

1.0.1 #

1.0.0 #

  • Initial release.
  • Listenable.watch(context), Stream.watch(context) extensions.
31
likes
150
pub points
75%
popularity

Publisher

verified publishersonerik.dev

A hassle-free way to watch for observable value changes within the `build` method.

Repository (GitHub)
View/report issues

Topics

#reactive #ui #state-management #extension

Documentation

API reference

License

MIT (license)

Dependencies

async_listenable, context_watch_base, flutter, meta

More

Packages that depend on context_watch