ant-design/ant-design-mobile

PullToRefresh 下拉刷新能否通过外部控制loading

Aperta

#5653 aperta il 9 set 2022

 (5 commenti) (0 reazioni) (0 assegnatari)TypeScript (2313 fork)batch import
featurehelp wanted

Metriche repository

Star
 (11.238 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Version of antd-mobile

5.22

Operating system and its version

Android

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

PullToRefresh 在触发 父组件render时 会导致 下拉框立即回弹, 并且refetch的回调函数因为一些原因无法使用promise返回, 所以请问有办法通过外部控制loading状态吗

Relevant log output

No response

Guida contributor