Commit 02fb202
authored
[CLNP-6835] Fix rules of hook violation (#1339)
[fix]: Fix rules of hook violation
Channel 컴포넌트의 Rules of React hook violation에 대한 케이스를 해결하는 PR입니다.
Fixes [CLNP-6835](https://sendbird.atlassian.net/browse/CLNP-6835)
### Changelogs
- Fixed a bug that violates the rules of React hook in `Channel`
component
### 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.
- [x] **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 <developer-advocates@sendbird.com> with
details
and we'll evaluate if we can set up a
[CLA](https://en.wikipedia.org/wiki/Contributor_License_Agreement) to
allow for the contribution.
[CLNP-6835]:
https://sendbird.atlassian.net/browse/CLNP-6835?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ1 parent f764163 commit 02fb202
File tree
9 files changed
+93
-32
lines changed- src
- modules
- Channel/context
- dux
- __tests__
- OpenChannel/context
- Thread/context
- ui/MentionUserLabel/__tests__
9 files changed
+93
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | | - | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
0 commit comments