Problems with mui pull-up and refresh drop-down load

1. The problem is that when the user enters the page, it will automatically drop down and refresh it, but when there is a problem with the network, it will keep turning around, how to hide it

clipboard.png

clipboard.png

mui

clipboard.png
who has a good solution, or which one should be used by api to ask for information? thank you very much


1. When there is a problem with the network, you should judge it in the interface. If the request fails, use mui (the'- sharprefreshContainer'). PullRefresh (). EndPulldown (); method is being shut down and is being refreshed.' The words.
2. Use this method to determine how many pieces of data are less than one page, hide the pull-up and load more mui ('- sharprefreshContainer'). PullRefresh (). DisablePullupToRefresh ();


, but what if your length > 0 is data but less than one page of data,

Menu