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

[功能请求] 长时间没有进入某板块,下次进入时自动刷新 #32

Open
Tsuk1ko opened this issue Oct 26, 2021 · 5 comments · Fixed by #36
Open

[功能请求] 长时间没有进入某板块,下次进入时自动刷新 #32

Tsuk1ko opened this issue Oct 26, 2021 · 5 comments · Fixed by #36
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Tsuk1ko
Copy link

Tsuk1ko commented Oct 26, 2021

主要场景

进入过某个板块后,把 MNGA 留在后台,过了很长时间后再次进入这个板块,仍然是上次拉取的话题列表,需要手动下拉刷新

期望表现

刷新时机仅为进入板块时,即如果用户保持在板块内(话题列表页面)将程序退到后台,下次进入程序时不刷新,此时如果退到首页再进入该板块则刷新

相当于话题列表数据有个过期时间,过期了就重新拉取

对于不同用户喜好,可以加一个设置来自定义这个过期时间,例如 永不过期、30分钟、1小时、……、1天 等等

@BugenZhao
Copy link
Owner

@Tsuk1ko 设计上打开一个版块界面理论上都会触发一次刷新,但是由于框架的迷之生命周期行为似乎导致了数据的保留,这个可能还需要深度探索一下。

后台重新进入超时后刷新的功能很有意义,可以考虑后续加入。

@BugenZhao
Copy link
Owner

@Tsuk1ko 大佬不考虑也来一起搞搞玩嘛😆

@BugenZhao BugenZhao added help wanted Extra attention is needed enhancement New feature or request labels Oct 26, 2021
@Tsuk1ko
Copy link
Author

Tsuk1ko commented Oct 26, 2021

@Tsuk1ko 大佬不考虑也来一起搞搞玩嘛😆

🥲没做过 iOS 开发,真要搞得研究下

关键是家里没 mac,拿 win 会不会很麻烦

@BugenZhao
Copy link
Owner

@Tsuk1ko Windows的确做不了😟

@Tsuk1ko
Copy link
Author

Tsuk1ko commented Oct 26, 2021

😷那无了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants