Commit a9fe70e
Sravan S
fix: Race condition in disconnect/connect (#648)
When there is only single instance of SDK,
and disconnect call take longer than next connect call
Solution: Set `newInstance: true` when initializing SDK instance
Fixes: https://sendbird.atlassian.net/browse/UIKIT-41931 parent 45c31de commit a9fe70e
File tree
2 files changed
+3
-0
lines changed- src/lib/hooks/useConnect
- __test__
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments