Skip to content

Commit 9316870

Browse files
Switched to connectWithoutView for report connection inside isChannelMuted
1 parent 5725a33 commit 9316870

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libs/actions/User.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,8 @@ function isBlockedFromConcierge(blockedFromConciergeNVP: OnyxEntry<BlockedFromCo
662662

663663
const isChannelMuted = (reportId: string) =>
664664
new Promise((resolve) => {
665-
const connection = Onyx.connect({
665+
// We use `connectWithoutView` here since this connection is non-reactive in nature.
666+
const connection = Onyx.connectWithoutView({
666667
key: `${ONYXKEYS.COLLECTION.REPORT}${reportId}`,
667668
callback: (report) => {
668669
Onyx.disconnect(connection);

0 commit comments

Comments
 (0)