Skip to content

Commit 589574c

Browse files
authored
Merge pull request Expensify#78296 from shubham1206agra/refactor-onyx-59
[NoQA] Switched to connectWithoutView for report connection inside isChannelMuted
2 parents 2c05f17 + 9316870 commit 589574c

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)