[Perf - part 3] Stop every dialog control in the entire app rerendering when opening a dialog (#8815)

This commit is contained in:
Samuel Newman
2025-08-14 01:11:44 +03:00
committed by GitHub
parent eef639ea54
commit 275fece3e3
2 changed files with 19 additions and 16 deletions
+2 -2
View File
@@ -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()