Dev diagnostics: ABANDONED_FLIGHTS fires on streamed frame slot args that supersede by design
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, typescript
- 領域
- devtools
調査の方向性
The false positive originates in the per-slot async-arg memo in packages/web/frames/src/client.ts where createMemo(() => args()[key]) causes streamed frames to supersede their own flights. Start by examining how abandonedFlights is counted in the dev diagnostics and whether the check can distinguish intentional supersession from churn. The fix will likely involve exempting or annotating these cases in the diagnostic output.
索引モデルが issue の本文から書いたものです。
説明
Split out of #3739, where it was reported as an aside.
examples/chat, running under vite-plugin-solid's dev server with the performance tracks on, logs repeated ABANDONED_FLIGHTS while a reply streams:
"computed" abandoned 3 flights in 1000ms
<App> › <For> › <Loading> › children › <Reply> › computed › computed
#3739 asked whether this is the HMR plumbing blind spot. It isn't, and the fix for #3739 (#3850) doesn't change it:
- The warned node is a named
computed. Plumbing nodes have no name, and the check already skips them. abandonedFlightsisn't one of the cost checks thatchecks: falseturns off, so it stays on under the performance-tracks hold.<Reply>is a localdynamic(() => reply(...))server component, not an HMR-wrapped component.
The likely source is the per-slot async-arg memo in packages/web/frames/src/client.ts (createMemo(() => args()[key])). Each streamed frame starts a new flight before the previous one lands, which is supersession by design. The check has no way to tell that apart from accidental churn. This has been traced from the code only; examples/chat hasn't been run to confirm it.
The question is how ABANDONED_FLIGHTS should treat sources that supersede their own flights by design, such as streamed slot args: exempt them, mark them, or calibrate the threshold differently for them.
- 主要言語
- TypeScript
- スター
- 36.1k
- フォーク
- 1.1k
- 平均マージ
- 11時間 42分
- マージ済み PR(30日)
- 326
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
solidjs/solid のほかの issue
-
[2.0 next, regressed after rc.13] Async-generator action times out on its authoritative live echoオープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
farbenmeer/tapi#531 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
naver/egjs-flicking#971 ·
-
Renderer treats a sub-pixel width difference as a resize, which cancels the `motion()` entranceオープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Tenant
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
MTES-MCT/Dossier-Facile-Frontend#2061 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
backnotprop/plannotator#1784 ·
メンテナーはふだん 1 日以内に返信