Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Observer in Cubit? #44

Closed
Gene-Dana opened this issue Jul 3, 2020 · 3 comments
Closed

Observer in Cubit? #44

Gene-Dana opened this issue Jul 3, 2020 · 3 comments
Assignees
Labels
question Further information is requested
Projects

Comments

@Gene-Dana
Copy link

Gene-Dana commented Jul 3, 2020

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?

@chimon2000
Copy link

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.

@felangel
Copy link
Owner

felangel commented Jul 3, 2020

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 🙂

@felangel felangel added the question Further information is requested label Jul 3, 2020
@felangel felangel closed this as completed Jul 3, 2020
@felangel felangel added this to To do in cubit via automation Jul 3, 2020
@felangel felangel moved this from To do to Done in cubit Jul 3, 2020
@Gene-Dana
Copy link
Author

Cool! Thank you for the prompt reply !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
No open projects
cubit
  
Done
Development

No branches or pull requests

3 participants