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

从MyPage切换到DynamicPage,会调用MyPage的requestRefresh()。 #266

Closed
GanZhiXiong opened this issue Feb 7, 2019 · 4 comments
Closed

Comments

@GanZhiXiong
Copy link

这个不应该啊,是不是。

@CarGuo
Copy link
Owner

CarGuo commented Feb 11, 2019

貌似我这边没出现

@GanZhiXiong
Copy link
Author

@CarGuo 我刚又拉取了你master最新的代码,测试还是复现了。
你可以这么测试,在下图所示位置打断点,然后运行APP,进入动态page后,切换到我的page,等下拉刷新完成后,再切换到动态page,就会调用MyPage的_getDataLogic方法。
正常逻辑不应该这样,这样会导致无用的网络请求,浪费流量,影响性能。
image

@CarGuo
Copy link
Owner

CarGuo commented Feb 28, 2019

flutter/flutter#27680

flutter/flutter#24821

TabBarView 确实存在这个问题,官方目前还未处理好。但是你可以看看项目里的,针对详情页面用的是PageView + Tab 这种配置目前应该是不会导致这个,你可以看看。

同时目前我还不清楚我项目里这个问题是不是也和redux有关系

@GanZhiXiong
Copy link
Author

好的,thanks!

@CarGuo CarGuo closed this as completed Mar 27, 2019
@CarGuo CarGuo mentioned this issue Nov 21, 2019
@w497763094 w497763094 mentioned this issue Mar 10, 2020
@JevonShi JevonShi mentioned this issue Mar 10, 2020
@HaobinXu HaobinXu mentioned this issue Mar 20, 2020
@luan823230 luan823230 mentioned this issue Mar 24, 2020
@hzg1105 hzg1105 mentioned this issue Jun 14, 2020
@wangkr wangkr mentioned this issue Jul 4, 2020
@jayVRIY jayVRIY mentioned this issue Dec 8, 2022
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