Skip to content

Provide change listener for attributes #25

@svenjacobs

Description

@svenjacobs

In our app, we frequently use Flows to propagate reactive data from the data layer to the UI layer. Many SDKs and libraries either natively support Flows or offer (change) listeners, which can be easily wrapped into Flows. This approach enables us to build reactive UIs: we can update an SDK value and immediately observe changes via a Flow or listener, eliminating the need to manually track changes or store temporary values.

Therefore, I kindly request that you provide change listeners for attributes, such as Batch.User.addAttributeChangeListener() and Batch.User.removeAttributeChangeListener(). These listeners would be triggered whenever an attribute is added, modified, or removed, allowing us to easily wrap this functionality with Flows.

Also see my issue #24, which I somewhat related to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions