-
-
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(cubit): optional StateError when emit happens #3042
feat(cubit): optional StateError when emit happens #3042
Conversation
I'm sorry I need to do a little refactor since bloc already awaits ongoing event emitters.
However Cubit doesn't have this feature so I'm going to apply the changes only for it. |
@felangel will you please review this PR? Maybe |
I'd prefer to hold off on this change for a little bit and evaluate other potential solutions. I want to make sure we carefully consider all options/approaches to resolve this before adding a new public API. Really appreciate you taking the time to create this PR 👍 I'll think about it a bit more over the next few days and get back to you, thanks! 🙏 |
Closing this for now since we need to discuss/align on an approach first (#3069) |
Status
READY
Breaking Changes
NO
Description
This PR focuses on Local Cubits where the cubit might become closed / disposed during processing async Cubit functions.
Current problem and workarounds:
Syntax if programmer knows the Cubit is a local cubit / temporary cubit:
Type of Change
closes #2980