diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-14 01:11:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-14 01:11:44 +0300 |
commit | 275fece3e3de0bd09377a33813bcfe35e352874b (patch) | |
tree | 60f1376c319cf0b5a12f6a065d33de21b8917b27 /src/view/shell/index.tsx | |
parent | eef639ea54f2309e6da18a293e07d54b7953f626 (diff) | |
download | voidsky-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/index.tsx')
-rw-r--r-- | src/view/shell/index.tsx | 4 |
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() |