-
-
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: Make bloc_effects part of this repo #4008
Comments
Hi, here is the similar feature request where Felix explained his point regarding the effects in bloc. Actually this explanation was the main reason for creating bloc_effects |
I just used this to easily show error messages in my UI. My current architecture has a bloc per page and it is considered part of the presentation layer, not the application layer. |
@DartAndrik sorry I don't understand your point. You appear to defend that
So I wonder why you created the library in the first place, if you don't believe in its value? |
Hi) Let's clarify a little(sorry for the repetition and confusing).
I just do not like when developers mix 2 approaches to achieve the same goal because it looks strange an makes mess. |
alternative to bloc_effects: bloc_presentation |
Description
The bloc_effects package from @DartAndrik should be part of the official bloc ecosystem like bloc_concurrency and hydrated_bloc. The package solves the problems described here as effects in a common and handy way. It has the big advantage that you have to use less
BlocListner
s and things that have to be handled once (called effects here) do not dilute the state. I have often had the problem of overly complex states due to effects that had to be mapped in the state. The package helps a lot to structure code more clearly and to separate code parts from each other. It should therefore be shared with all developers and used accordingly in the tutorials. Adding the package to the bloc repo would help to do so.Desired Solution
Contact the author of the package and, if possible, transfer the package to the packages folder of this repository so that maintanace and visibility are guaranteed.
Alternatives Considered
Develop an own official package to solve the problem.
The text was updated successfully, but these errors were encountered: