Don't log extra background events (#5134)

zio/stable
dan 2024-09-04 14:41:42 +01:00 committed by GitHub
parent 39f74ced5c
commit 8860890a85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -226,12 +226,12 @@ AppState.addEventListener('change', (state: AppStateStatus) => {
let secondsActive = 0
if (lastActive != null) {
secondsActive = Math.round((performance.now() - lastActive) / 1e3)
}
lastActive = null
logEvent('state:background:sampled', {
secondsActive,
})
}
}
})
export async function tryFetchGates(