-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
遇到一个KeepAlive的问题希望能帮忙解答下 #203
Comments
已经解决了,我在flutter的issue也提了这个问题,他们说是没有在继承 |
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我的主界面有3个Tab,每个Tab都继承了
AutomaticKeepAliveClientMixin
,在主界面点击Tab切换页面,确实每个页面也只走了一遍initState
,但是很操蛋的是我这时候跳转到了第二个界面,在回来,点击Tab切换的时候,每个页面重新走了initState
,我看了项目的代码,貌似跟我的没什么差,但是你的从第二个界面出来后还保持原来状态,不会重新init
。下面是我的一个可以复现的小代码:
The text was updated successfully, but these errors were encountered: