Closed GoogleCodeExporter closed 9 years ago
Mvp4g doesn't prevent event loop.
The best workaround is to have 2 events, one that goes from parent to children
and another one that parent will broadcast to children (the parent must not
extends the broadcast interface).
For example, you can have:
@Events(forwardToParent = true)
void logoutAsked();
@Events(broadcastTo = ILogoutHandler.class)
void logout();
Only the root module will handle the logoutAsked event by sending the logout
event.
//One presenter of root module
void onLogoutAsked() {
eventBus.logout();
}
Original comment by plcoir...@gmail.com
on 22 Mar 2012 at 12:45
Original issue reported on code.google.com by
Evgeny.M...@gmail.com
on 21 Mar 2012 at 9:16