1 parent 5725a33 commit 9316870Copy full SHA for 9316870
1 file changed
src/libs/actions/User.ts
@@ -662,7 +662,8 @@ function isBlockedFromConcierge(blockedFromConciergeNVP: OnyxEntry<BlockedFromCo
662
663
const isChannelMuted = (reportId: string) =>
664
new Promise((resolve) => {
665
- const connection = Onyx.connect({
+ // We use `connectWithoutView` here since this connection is non-reactive in nature.
666
+ const connection = Onyx.connectWithoutView({
667
key: `${ONYXKEYS.COLLECTION.REPORT}${reportId}`,
668
callback: (report) => {
669
Onyx.disconnect(connection);
0 commit comments