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

建议onRefresh和onLoad设计成返回Future自动停止 #4

Open
39251474 opened this issue Jun 12, 2020 · 3 comments
Open

建议onRefresh和onLoad设计成返回Future自动停止 #4

39251474 opened this issue Jun 12, 2020 · 3 comments

Comments

@39251474
Copy link

如题,在一些非常简单的场景中我不希望声明和控制controller,只希望由一个简单的回调方法来加载数据并自动停止,就像RefreshIndicator那样

@chenBingX
Copy link
Member

你好开发者,
感谢你的建议,在后续的优化升级中,会慎重考虑这项特性的。

@MrGaga
Copy link

MrGaga commented Aug 4, 2020

不建议按用户39251474 这么做,很多开发者使用咸鱼中 fish_redux组件化方案,请求数据全部通过Action动作发送消息,
官方那种回调函数自动停止(RefreshIndicator)的方案不合适,控制器挺好的

@MrGaga
Copy link

MrGaga commented Aug 4, 2020

你好开发者,
感谢你的建议,在后续的优化升级中,会慎重考虑这项特性的。

不建议按用户39251474 这么做,很多开发者使用咸鱼中 fish_redux组件化方案,请求数据全部通过Action动作发送消息,
官方那种回调函数自动停止(RefreshIndicator)的方案不合适,控制器挺好的

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

3 participants