Commit bd16745
committed
Fix async events loading in RemoteEventsList
- Added syncPromise to track initial sync completion
- Added ensureSynced() method to wait for sync before returning events
- Modified getEvents() to await sync completion before accessing cached events
- Fixes issue where getEvents() returned empty array before sync completed
This resolves the 'Loaded events: []' issue where events were not visible
in the conversation manager despite successful API responses.1 parent a43c5aa commit bd16745
File tree
2 files changed
+9
-5
lines changed- example/src/components
- src/events
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 141 | + | |
| 142 | + | |
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
0 commit comments