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 to stop reload data on navigator.pop() action? #27

Closed
amirzeinaly opened this issue Dec 13, 2020 · 1 comment
Closed

How to stop reload data on navigator.pop() action? #27

amirzeinaly opened this issue Dec 13, 2020 · 1 comment

Comments

@amirzeinaly
Copy link

Hi I have simple question
I Add fragment A -> navigator.add(A())
then I Add Fragment B -> navigator.add(B())
after that when I came back to fragment A(navigator.pop())
Fragment A reloaded

What can I do to stop reload Fragment?

thanks

@zsmb13
Copy link
Member

zsmb13 commented Dec 14, 2020

The documentation covers this in ViewModel init. The TLDR is, it's up to you to figure out when you want to reload state, by calling into the ViewModel from the Fragment as needed for your use case.

@zsmb13 zsmb13 closed this as completed Jan 13, 2021
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