badoo / MVICore

MVI framework with events, time-travel, and more
https://badoo.github.io/MVICore/
Other
1.26k stars 88 forks source link

Not consumed events when Lifecycle ends #157

Open EnderErol opened 2 years ago

EnderErol commented 2 years ago

Sample code for not consumed events when Lifecycle ends.

The View class generates an event where both Feature and Analytics classes consume it. As a result of this input, the Feature class generates a news event that calls the Lifecycle's end method. As this operation unbinds the bindings, and the view to feature binding comes before the view to analytics binding, the Analytics class never gets the event generated by the View class.