Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: apply appStateToggleEnabled init param #12

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

AhyoungRyu
Copy link
Collaborator

Even after #11 merged, the channel is still refreshed due to the sdk reconnection. It's because the sdk's default behavior https://github.com/sendbird/chat-js/blob/develop-v4/src/comm/appStateChangeDetector.ts#L26. So I had to add a new option; sdkInitParams to UIKit sendbird/sendbird-uikit-react#692 so we can pass the sdk init option param.

By passing appStateToggleEnabled: false when sdk.init() is called, we'll be able to prevent this unnecessary channel refresh.

Copy link
Contributor

@luke-cha luke-cha 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 5e6bf3e into develop Jul 21, 2023
1 check passed
@AhyoungRyu AhyoungRyu deleted the feat/AC-200/apply-init-params branch July 21, 2023 06:56
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.

2 participants