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

[CLNP-6072] useConnectionHandler #1291

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

[CLNP-6072] useConnectionHandler #1291

wants to merge 2 commits into from

Conversation

chrisallo
Copy link
Collaborator

https://sendbird.atlassian.net/browse/SBISSUE-18182

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If unsure, ask the members.
This is a reminder of what we look for before merging your code.

  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • Public components / utils / props are appropriately exported
  • I have added necessary documentation (if appropriate)

External Contributions

This project is not yet set up to accept pull requests from external contributors.

If you have a pull request that you believe should be accepted, please contact
the Developer Relations team [email protected] with details
and we'll evaluate if we can set up a CLA to allow for the contribution.

@chrisallo chrisallo self-assigned this Dec 30, 2024
Copy link

netlify bot commented Dec 30, 2024

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit 7ddff95
🔍 Latest deploy log https://app.netlify.com/sites/sendbird-uikit-react/deploys/677773624346930008245bca
😎 Deploy Preview https://deploy-preview-1291--sendbird-uikit-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

src/hooks/useConnectionHandler.ts Outdated Show resolved Hide resolved
import { ConnectionHandler, ConnectionState } from '@sendbird/chat';
import useSendbirdStateContext from './useSendbirdStateContext'
import uuidv4 from '../utils/uuid';

Copy link
Collaborator

Choose a reason for hiding this comment

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

may need to export the ConnectionHandler from UIKit, here

export ConnectionHandler

https://github.com/sendbird/sendbird-uikit-react/pulls?q=is%3Apr+is%3Aclosed+export+Handlers+thorough
예전에 @sendbird/chat의 인터페이스를 그대로 사용하던 고객에게서 Invalid Parameter Error가 발생한다는 이슈 리포트가 있었습니다. 좀 오래 되어서, 잘 기억은 안나지만 아마도 chat-js와 uikit의 디펜던시로 가지고 있는 chat-js간의 버전이 달라서 발생했던 이슈로 기억합니다. 해당 이슈가 발생할 수 있을지 검토가 필요해 보입니다.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@chrisallo chrisallo Jan 3, 2025

Choose a reason for hiding this comment

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

ConnectionHandler의 경우에는 v4 초반부터 있었던 핸들러이고 변경 내용이 거의 없어서 괜찮지 않을까 싶긴 한데 그래도 안전빵으로 바꿔두었습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants