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

MJRefreshDispatchAsyncOnMainQueue 添加主线程判断 #1606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

longitachi
Copy link

@longitachi longitachi commented Mar 18, 2024

主要解决这个问题:对footer进行resetNoMoreData之后,如果直接调用footer.beginRefreshing时,由于resetNoMoreData中对state的更改是在下次主线程中执行,这样就导致footer不显示loading动画。
image

效果参照下图:

  • 修改之前的效果
    old

  • 修改之后的效果
    new

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

Successfully merging this pull request may close these issues.

None yet

1 participant