Skip to content

Accounts state change listener#232

Merged
frnandu merged 8 commits intomasterfrom
auth-state-listener
Sep 18, 2025
Merged

Accounts state change listener#232
frnandu merged 8 commits intomasterfrom
auth-state-listener

Conversation

@nogringo
Copy link
Collaborator

Added a stream in the Account class to listen to auth state changes.

@nogringo nogringo requested review from 1-leo and frnandu September 13, 2025 09:09
@nogringo nogringo self-assigned this Sep 13, 2025
@codecov
Copy link

codecov bot commented Sep 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.75%. Comparing base (056caf8) to head (57f18df).
⚠️ Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #232      +/-   ##
==========================================
+ Coverage   71.52%   71.75%   +0.23%     
==========================================
  Files         125      125              
  Lines        4400     4415      +15     
==========================================
+ Hits         3147     3168      +21     
+ Misses       1253     1247       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@1-leo 1-leo left a comment

Choose a reason for hiding this comment

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

👍nice!
Maybe instead of StreamController a BehaviorSubject so the latest value is always available:
https://pub.dev/packages/rxdart#subjects

Copy link
Contributor

@1-leo 1-leo left a comment

Choose a reason for hiding this comment

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

wait the tests do not check if the actual stream changes, you can do this with

await expectLater(stream, emitsInOrder(<expected>));

@nogringo nogringo requested a review from 1-leo September 13, 2025 12:38
@1-leo
Copy link
Contributor

1-leo commented Sep 14, 2025

  • flanky test: nip46_event_signer_test

=> skip (for now) => #234

@frnandu frnandu changed the title Auth state listener Accounts state change listener Sep 18, 2025
@frnandu frnandu merged commit 5ce32c5 into master Sep 18, 2025
3 checks passed
@frnandu frnandu added this to the 0.6 milestone Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants