[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ComputedNotifier streaming class #150143

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Jun 12, 2024

  1. feat: Introduce ComputedNotifier for derived state management

    `ComputedNotifier` is a new `ValueListenable` implementation that computes its value based on other `ValueListenable` instances. This facilitates efficient and reactive updates for derived state, eliminating the need for manual dependency tracking and update propagation.
    
    The class listens to changes from provided dependencies and recomputes its value whenever any of them change, notifying its listeners only when the computed value itself changes.
    HenriqueNas committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    0dfdd16 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6ce9e8 View commit details
    Browse the repository at this point in the history
  3. Docs: Include ComputedNotifier in preferred listeners

    Clarifies that `ComputedNotifier` is also a preferred alternative to `Stream` subclasses, aligning with the preference for `ValueNotifier` and `ChangeNotifier` in Flutter framework code.
    HenriqueNas committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    ff30c0d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1e4c906 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Configuration menu
    Copy the full SHA
    23d6421 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ffc1a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9ce230a View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    4a6c5fd View commit details
    Browse the repository at this point in the history