-
Notifications
You must be signed in to change notification settings - Fork 22
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
Unable to store router's backstack. #31
Comments
Did you try with |
@sevar83, thanks for response. I did both. Here I elaborate more on that: https://stackoverflow.com/questions/47232228/conductors-controller-unexpected-lifecycle |
Hm, I'm sorry but I think this is not Mosby related.
Mosby doesnt do any magic or changes or manipulates Lifecycle of a
controller somehow. Mosby is just using the regular lifecycle events your
controller get to save and restore the ViewState. You also don't have to
store controller stack, thats all Conductors responsibility and has
nothing to do with Mosby.
You better post your question / link to stackoverflow in Conductors
repository here on github.
Btw. I don't know why onDestroyView () is called as described in your
stackoverflow question ...
Evgenii Kozlov <notifications@github.com> schrieb am Sa., 11. Nov. 2017,
20:52:
… @sevar83 <https://github.com/sevar83>, thanks for response. I did both.
Here I elaborate more on that:
https://stackoverflow.com/questions/47232228/conductors-controller-unexpected-lifecycle
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjnrj_D9YvfF9xFdmv8rq-kpRCYql0dks5s1fsIgaJpZM4QZ8oJ>
.
|
Thanks for your answer anyway. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an
Activity
inside which a Controller(CardController)
inside which I have aViewPager
withControllers
as Pages which in their turn could be opened (i.e. pushed) - again - asController
. How would I save ViewPager state and overall stack of controllers which get pushed onCardController
using your ViewState concept? I get how I can save data for adapter, but I don't get how I store controller stack resulting from user's choice which controller to open?So here's an example flow:
Activity - CardController created -> user chooses a Tab > user chooses an item inside a tab > Controller gets opened. The device is rotated. Everything is recreated.
The text was updated successfully, but these errors were encountered: