Skip to content

Conversation

@chrisallo
Copy link
Collaborator

@chrisallo chrisallo commented May 21, 2025

[fix]: Set initial value for initialized and loading

iFood 쪽에서 요구한 사항 중 저 플래그 state들의 기본값을 undefined가 아닌 값으로 바꿔달라는 요청이 있어서 작업했습니다.

Fixes CLNP-6813

Changelogs

  • GroupChannelProvider has loading and initialized flag states as non-undefined value

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 requested a review from danney-chun May 21, 2025 19:09
@chrisallo chrisallo self-assigned this May 21, 2025
@netlify
Copy link

netlify bot commented May 21, 2025

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit 27d90ea
🔍 Latest deploy log https://app.netlify.com/projects/sendbird-uikit-react/deploys/682e25034dc9be00083788af
😎 Deploy Preview https://deploy-preview-1337--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 project configuration.

fetchChannelError: null,
nicknamesMap: new Map(),

initialized: false,
Copy link
Contributor

@danney-chun danney-chun May 22, 2025

Choose a reason for hiding this comment

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

provide에서 initizlied/loading의 역할이 멀까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

UIKit Core에서 넘어온 prop인데요, initialized는 MessageCollection에서 onCacheResult의 결과 messages가 있거나, onApiResult 결과를 받아온 시점에 true가 되구요, loading은 initialized와 값만 반대이고 역할은 거의 동일하나, reset history 할때도 true가 되었다가 처리가 끝나고 false로 바뀌는게 차이가 있습니다.

Copy link
Contributor

Choose a reason for hiding this comment

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

오~~ SDK에 대한 initialize/loading이 아닌, Collection에 대한 property 이군요..

Copy link
Contributor

@danney-chun danney-chun left a comment

Choose a reason for hiding this comment

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

lgtm~

@chrisallo chrisallo merged commit e3f5089 into main May 22, 2025
9 checks passed
@bang9 bang9 deleted the fix/clnp-6813 branch November 7, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants