This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
How to keep state in the "books" example #367
Unanswered
amitrotner
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Interesting. That sample worked when @rydmike built it. @rydmike thoughts about why it might not be working? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to add a state keeping ability to the "books" example.
I have followed https://gorouter.dev/nested-navigation#keeping-state and changed
author_list.dart
so the authors list will be 50 times longer (just for the demonstration) and addedAutomaticKeepAliveClientMixin
.However, when I scroll down the authors page, move to another page and return to the authors page, the state is not preserved.
How can I modify this example to enable state preserving?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions