Search packages, repositories and app categories

GitHub repositorygoogle/observable

observable

Support for marking objects as observable, and getting notifications when those objects are mutated.

observable project cover
Stars
59
Forks
21
Last push (UTC)
Dec 1, 2021
Project status
Archived

Original README

English project snapshot. Visit GitHub for the latest content.

Build Status

Support for detecting and being notified when an object is mutated.

An observable is a way to be notified of a continuous stream of events over time.

Some suggested uses for this library:

  • Observe objects for changes, and log when a change occurs
  • Optimize for observable collections in your own APIs and libraries instead of diffing
  • Implement simple data-binding by listening to streams

You may want to look at the former TC39 proposal Observe.observe, which was deprecated.

Usage

There are two general ways to detect changes:

  • Listen to Observable.changes and be notified when an object changes
  • Use Differ.diff to determine changes between two objects
Google GitHub avatar
GitHub author

Google ↗

Google ❤️ Open Source

United States of AmericaOfficial website ↗
LanguagesDart

Dependencies used

Dependency list 9 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗