Flush during flush leads to not all tasks being executed
- 主要言語
- JavaScript
- スター
- 35
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**I'm submitting a bug report**
* **Library Version:**
current
**Please tell us about your environment:**
* **Operating System:**
OSX 10.x|Linux (distro)|Windows [7|8|8.1|10]
* **Node Version:**
6.2.0
* **NPM Version:**
3.8.9
* **Browser:**
all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView
* **Language:**
all | TypeScript X.X | ESNext
**Current behavior:**
If one of the queued micro tasks calls flushMicroTaskQueue
Queue enters the second flush cycle even though flushing is set to true
after which length of queue is set to zero
but for 1st flush call index is greater then length of queue at this point
and leads to unexpected behavior
**Expected/desired behavior:**
* **What is the expected behavior?**
If queue is already flushing we should ignore the second call
* **What is the motivation / use case for changing the behavior?**
prevent uncertainty
コントリビューションガイド
調査の方向性
まず flushMicroTaskQueue の実装を見つけ、キューがすでにフラッシュ中のときに flushMicroTaskQueue を呼び出す、キューに入れられたマイクロタスクを再現します。ネストされた呼び出しが最初のフラッシュを妨げず、キューに入れられたすべてのタスクが実行されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100