-
-
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(bloc)!: expose Emitter in Cubit #2896
Conversation
@jeroen-meijer @definitelyokay after thinking about it I'd prefer not to support the
Would love to hear what you all think, thanks! |
You're absolutely right. It was a nice idea, but I guess it's bad in practice. Didn't foresee that, but live and learn 🤷♀️ |
Hello, sorry for bumping this thread., but if I want to listen to a stream in Cubit class is below correct?
Thanks! |
Feel free to put the subscription in the constructor body too! |
I think the main reason this hasn’t been done yet is due to implementation challenges, not because adding these features to Cubit is a bad idea. |
Status
IN DEVELOPMENT
Breaking Changes
YES
Description
emit.forEach
andemit.onEach
inCubit
BlocBase
implementation from interface (closes #refactor(bloc): Extract base bloc interface #2453)Type of Change