Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about life cycles ? #7

Closed
stephanenicolas opened this issue Jul 30, 2015 · 1 comment
Closed

How about life cycles ? #7

stephanenicolas opened this issue Jul 30, 2015 · 1 comment

Comments

@stephanenicolas
Copy link

The presenter is recreated each time a new instance is created, as during a rotation. This doesn't address one of the main Android issues.

Let's say you got a network request, initiated by the presenter of the activity before rotation, how can the new instance take advantage of the request pending or resolved ?

@antoniolg
Copy link
Owner

You could improve the example to do it like that, saving somewhere (maybe an static component) that the request has already been done, and requesting it when the presenter is recreated. When you start listening the bus, then you can decide if you execute the request or wait for the response of an old request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants