facebookexperimental/Recoil
[React Native] "Setting a timer for a long period of time" warning
Aperta
#1030 aperta il 16 mag 2021
help wantednative
Metriche repository
- Star
- (19.428 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Version 0.3.0 produces warning:
WARN 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.
Happens because of https://github.com/facebookexperimental/Recoil/blob/master/src/hooks/Recoil_Hooks.js#L60.
Any plans to fix it?