Skip to content

Conversation

@AhyoungRyu
Copy link
Contributor

@AhyoungRyu AhyoungRyu commented Nov 3, 2023

Found the issue while I was testing https://sendbird.atlassian.net/browse/SBISSUE-14025.

If user passes custom queries(: object) prop to Channel module, it'll cause unnecessary re-rendering in this effect hook. So I just made it more precise so the deps array don;t waste the resource to compare the object diff and make unnecessary side effect.

@AhyoungRyu AhyoungRyu force-pushed the fix/precies-object-dep branch from 7a23206 to f8135b7 Compare November 3, 2023 07:02
Copy link
Contributor

@chohongm chohongm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@AhyoungRyu AhyoungRyu merged commit 74da7cc into main Nov 3, 2023
@AhyoungRyu AhyoungRyu deleted the fix/precies-object-dep branch November 3, 2023 07:26
chohongm pushed a commit that referenced this pull request Nov 6, 2023
Put more precise  `queries(: object)` deps to effect hook to prevent unnecessary re-rendering from Channel module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants