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

Trigger event listeners before attribute listeners for Subscriptions #1658

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Apollon77
Copy link
Collaborator

In fact happened events usually lead to a new "final attribute status" which is also reported. To mimic this a bit better we should trigger event listeners before attribute listeners. This could halp a lot with e.g. Switch events where events report presses, but the switch position is reported as "0".

In fact happened events usually lead to a new "final attribute status" which is also reported. To mimic this a bit better we should trigger event listeners before attribute listeners. This could halp a lot with e.g. Switch events where events report presses, but the switch position is reported as "0".
Copy link

semanticdiff-com bot commented Jan 24, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  packages/protocol/src/interaction/InteractionClient.ts  92% smaller
  packages/nodejs/test/IntegrationTest.ts  33% smaller
  CHANGELOG.md Unsupported file format

@@ -9,6 +9,10 @@ The main work (all changes without a GitHub username in brackets in the below li
## __WORK IN PROGRESS__
-->

## __WORK IN PROGRESS__
- @matter/protocol
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open a dummy comment ... I send this to the current Controller implementors to request feedback ...

Do you have any opinion if this is breaking or makes sense? I found it problematic getting the switch button events but then the "currentPosition" was reported as "0" before these events. if you consider breaking I would make it configurable ... else just is different behavior. WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants