about summary refs log tree commit diff
path: root/src/App.web.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-11-17 06:20:08 +0000
committerGitHub <noreply@github.com>2023-11-16 22:20:08 -0800
commit6c8f043e370393d593c14dc40cff86b062fc5c52 (patch)
treeeb159cccca0c0f33577ad017158f8796b3401209 /src/App.web.tsx
parenta8aed2c38e1b45d3f816b79fdd42bedfc7918319 (diff)
downloadvoidsky-6c8f043e370393d593c14dc40cff86b062fc5c52.tar.zst
Freeze inactive screens (#1949)
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r--src/App.web.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 67fa3dcc3..b1dba798a 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -4,6 +4,7 @@ import React, {useState, useEffect} from 'react'
 import {QueryClientProvider} from '@tanstack/react-query'
 import {SafeAreaProvider} from 'react-native-safe-area-context'
 import {RootSiblingParent} from 'react-native-root-siblings'
+import {enableFreeze} from 'react-native-screens'
 
 import 'view/icons'
 
@@ -32,6 +33,8 @@ import {
 import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread'
 import * as persisted from '#/state/persisted'
 
+enableFreeze(true)
+
 function InnerApp() {
   const {isInitialLoad} = useSession()
   const {resumeSession} = useSessionApi()