atdalīts no vergnet/application-amicale
Wait a few milliseconds before refreshing list
Šī revīzija ir iekļauta:
vecāks
b654a928a2
revīzija
538d4d2187
1 mainīti faili ar 3 papildinājumiem un 1 dzēšanām
|
@ -99,7 +99,9 @@ class WebSectionList<T> extends React.PureComponent<PropsType<T>, StateType> {
|
||||||
*/
|
*/
|
||||||
onScreenFocus = () => {
|
onScreenFocus = () => {
|
||||||
const {props} = this;
|
const {props} = this;
|
||||||
if (props.refreshOnFocus && this.lastRefresh) this.onRefresh();
|
if (props.refreshOnFocus && this.lastRefresh) {
|
||||||
|
setTimeout(this.onRefresh, 200);
|
||||||
|
}
|
||||||
if (props.autoRefreshTime > 0)
|
if (props.autoRefreshTime > 0)
|
||||||
this.refreshInterval = setInterval(this.onRefresh, props.autoRefreshTime);
|
this.refreshInterval = setInterval(this.onRefresh, props.autoRefreshTime);
|
||||||
};
|
};
|
||||||
|
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā