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 can keep state of tree with navigation when back? #9

Open
minhson95th opened this issue Feb 27, 2023 · 3 comments
Open

How can keep state of tree with navigation when back? #9

minhson95th opened this issue Feb 27, 2023 · 3 comments

Comments

@minhson95th
Copy link

I want to keep state of tree after back from another fragment. How can i do? I use with Android Navigation Component

device-2023-02-27-161815.mp4

Capture1

@AmrDeveloper
Copy link
Owner

Hello @minhson95th,

For now, you need to save and restore the nodes because the state is on each TreeNode object, maybe we can find a better solution that easy to use and not effect the performance

Thank you
Amr Hesham

@minhson95th
Copy link
Author

Hello @minhson95th,

For now, you need to save and restore the nodes because the state is on each TreeNode object, maybe we can find a better solution that easy to use and not effect the performance

Thank you Amr Hesham

Do you have any solution?

@AmrDeveloper
Copy link
Owner

@minhson95th Still thinking of good solution that can be part of the library

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