-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat: #3555 #3933
feat: #3555 #3933
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3933 +/- ##
===========================================
- Coverage 100.00% 99.87% -0.13%
===========================================
Files 31 31
Lines 803 807 +4
===========================================
+ Hits 803 806 +3
- Misses 0 1 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this is not sufficient because there are APIs and implementation details of the current Emitter implementation that are bloc and event handler specific. Making this work will likely involve splitting Emitter into a base Emitter and a BlocEmitter. I'm looking into this now and will hopefully have something ready to ship in the coming weeks 👍
Closing this for now based on my comment but happy to continue the discussion 👍 |
Make
emit
ofBlocBase
return anEmitter
which is used as an "internal"Emitter
inBloc
replacing the oldemit
function. Inside Cubit theEmitter
is used instead of the oldemit
function allowing easy handling of subscriptions as described in #3555.Status
READY
Breaking Changes
These changes might be breaking for clients which override
emit
(happened inreplay_bloc
).Else usage should be the same.
Type of Change