felangel/cubit

Observer in Cubit?

Gene-Dana opened this issue ยท 3 comments

Hey there is the advantage of using BLoC over Cubit because BLoC has an observer which prints out Current State, the Event and the Next State in the Observer?

Or is that possible inside Cubit too?

Cubit doesn't have a concept of events. The trade-off is you gain simplicity at the cost of the event sourcing capabilities of Bloc.

Hi @Gene-Dana ๐Ÿ‘‹
Thanks for opening an issue!

You can observe state changes in cubit as well with CubitObserver ๐Ÿ‘

Closing for now but feel free to comment with additional questions and Iโ€™m happy to continue the conversation ๐Ÿ™‚

Cool! Thank you for the prompt reply !