This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
Remove unneeded events / states from BloCs #520
Labels
tech debt
Technical tickets without user visible impact
Is your feature request related to a problem? Please describe.
In the beginning we weren't aware of
yield*
and created a lot of useless event / state transitions (as seen here https://github.com/open-xchange/ox-coi/blob/develop/lib/src/contact/contact_change_bloc.dart).Describe the solution you'd like
Instead of adding events, which directly map to new state, e.g. if a method in a BloC is finished, we should just directly return the new state and use it via
yield*
. Compare https://github.com/open-xchange/ox-coi/blob/develop/lib/src/contact/contact_list_bloc.dartInternal Bug Tracker.
The text was updated successfully, but these errors were encountered: