about summary refs log tree commit diff
path: root/src/view/shell
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-08-14 01:11:44 +0300
committerGitHub <noreply@github.com>2025-08-14 01:11:44 +0300
commit275fece3e3de0bd09377a33813bcfe35e352874b (patch)
tree60f1376c319cf0b5a12f6a065d33de21b8917b27 /src/view/shell
parenteef639ea54f2309e6da18a293e07d54b7953f626 (diff)
downloadvoidsky-275fece3e3de0bd09377a33813bcfe35e352874b.tar.zst
[Perf - part 3] Stop every dialog control in the entire app rerendering when opening a dialog (#8815)
Diffstat (limited to 'src/view/shell')
-rw-r--r--src/view/shell/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx
index 543009a55..04fccc44c 100644
--- a/src/view/shell/index.tsx
+++ b/src/view/shell/index.tsx
@@ -12,7 +12,7 @@ import {useNotificationsHandler} from '#/lib/hooks/useNotificationHandler'
 import {useNotificationsRegistration} from '#/lib/notifications/notifications'
 import {isStateAtTabRoot} from '#/lib/routes/helpers'
 import {isAndroid, isIOS} from '#/platform/detection'
-import {useDialogStateControlContext} from '#/state/dialogs'
+import {useDialogFullyExpandedCountContext} from '#/state/dialogs'
 import {useSession} from '#/state/session'
 import {
   useIsDrawerOpen,
@@ -181,7 +181,7 @@ function ShellInner() {
 }
 
 export const Shell: React.FC = function ShellImpl() {
-  const {fullyExpandedCount} = useDialogStateControlContext()
+  const fullyExpandedCount = useDialogFullyExpandedCountContext()
   const t = useTheme()
   useIntentHandler()