We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b863e23 commit 1b21e94Copy full SHA for 1b21e94
1 file changed
src/libs/Sound/BaseSound.ts
@@ -4,7 +4,10 @@ import ONYXKEYS from '@src/ONYXKEYS';
4
5
let isMuted = false;
6
7
-Onyx.connect({
+// We use `connectWithoutView` here because this is purely for sound utility logic and not connected
8
+// to any UI component. This connection tracks the platform-specific mute state in a module-level
9
+// variable that sound functions check when called, avoiding unnecessary re-renders since.
10
+Onyx.connectWithoutView({
11
key: ONYXKEYS.NVP_MUTED_PLATFORMS,
12
callback: (val) => {
13
const platform = getPlatform(true);
0 commit comments