diff options
Diffstat (limited to 'src/lib/analytics.tsx')
-rw-r--r-- | src/lib/analytics.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/analytics.tsx b/src/lib/analytics.tsx index 5358a8682..725dd2328 100644 --- a/src/lib/analytics.tsx +++ b/src/lib/analytics.tsx @@ -16,7 +16,7 @@ export function init(store: RootStoreModel) { // this method is a copy of segment's own lifecycle event tracking // we handle it manually to ensure that it never fires while the app is backgrounded // -prf - segmentClient.onContextLoaded(() => { + segmentClient.isReady.onChange(() => { if (AppState.currentState !== 'active') { store.log.debug('Prevented a metrics ping while the app was backgrounded') return |