将ThrottleTime的值设置为60000会引发警告,这是否值得关注?

时间:2018-06-28 19:15:12

标签: react-native rxjs redux-observable

我正在使用每60秒播放一次的史诗。有了这个值,我会得到警告:

Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issues/12981 for more info. (Saw setInterval with duration 600000ms)

这对我来说会是个问题,如果是这样,您有建议的替代方法吗?

0 个答案:

没有答案