Commit dac4d6b
fix: fixed race condition causing events to be lost during initialization (#1103)
* fix: fixed race condition causing events to be lost during initialization
- added unit test cases
- fixed the race condition
* fix: race condition to prevent loss of events during initialisation
- refactored onReady()
- removed unused tests which were written for wrong fix
---------
Co-authored-by: Sunita Prajapati <[email protected]>1 parent 409f954 commit dac4d6b
File tree
2 files changed
+12
-8
lines changed- packages/core/src
- __tests__/methods
2 files changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | 310 | | |
312 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
| |||
561 | 565 | | |
562 | 566 | | |
563 | 567 | | |
564 | | - | |
565 | | - | |
| 568 | + | |
| 569 | + | |
566 | 570 | | |
567 | | - | |
568 | | - | |
569 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
570 | 574 | | |
571 | | - | |
572 | | - | |
573 | 575 | | |
574 | 576 | | |
575 | 577 | | |
| |||
0 commit comments