rc.9: overlapping optimistic moves duplicate an item across filtered keyed lists
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
まずリンク先の再現を実行し、フィルタリングされたキー付き For リストでの createOptimisticStore を調べます。古いアクションが確定した後に、public flush()、publish(source)、および重複するアクションの解決が保留中の配置をどのように更新するかを追跡します。完了条件は、再現で card 0 が lane 2 にのみ、card 1 が lane 1 にのみ残り、アクション 2–4 が保留中のままであることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
A createOptimisticStore backed by an async iterable becomes inconsistent with filtered, keyed For lists while actions overlap. After an older action is confirmed, a later update causes the same item to render in two lists, even though the optimistic store contains that item only once and assigns it to only one list.
The reduced case has two cards and four optimistic moves. No router, SSR, database, drag handling, effects, or application-managed ownership.
Your Example Website or App
https://s.olid.uk/id/kln8x1FLT-GushIouj37EQ
Steps to Reproduce the Bug or Issue
Click Run reproduction once. Reload to repeat.
The button:
- Moves card 0 to lane 1, order 1.
- Moves card 0 to lane 2, order 6.
- Moves card 1 to lane 1, order 9.
- Publishes the authoritative result of action 1, resolves only action 1, and allows a task turn.
- Moves card 1 within lane 1, order 3.
Actions 2-4 remain pending. Each move calls public flush().
Observed: lane 1 renders cards 0 and 1; lane 2 also renders card 0. The store contains only two cards and places card 0 only in lane 2.
Expected behavior
Lane 1 should contain only card 1; lane 2 should contain only card 0. Confirming an older move must not expose its old placement alongside the newer optimistic placement.
Screenshots or Videos
No response
Platform
Linux/WSL, Chromium.
Published solid-js, @solidjs/signals, @solidjs/web and native @solidjs/compiler 2.0.0-rc.9.
Also reproduces with matching pkg.pr.new/mizulu/solid2 runtime packages at 788277a, retaining the rc.9 native compiler.
Verified in development and production DOM builds.
Additional context
Control: omit only publish(source), leaving action resolution and all moves unchanged. No duplicate appears.
In the full app, rendering recovers after all requests are confirmed. This reports inconsistent pending rendering, not persisted duplicate records.
Related: #3543. Preview 788277a fixes that subscriber-leak repro, but this duplication still reproduces. The exact internal cause has not been identified.
- 主要言語
- TypeScript
- スター
- 36.1k
- フォーク
- 1.1k
- 平均マージ
- 10時間 41分
- マージ済み PR(30日)
- 363
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
solidjs/solid のほかの issue
-
難易度 3/5 半日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
signals: a landing reveals a held write its stale reader re-derives onto a new flight (U-5, D-9)オープン
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
xdjs/MusicNerdWeb#1532 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sebastian-software/ardo#352 ·
メンテナーはふだん 1 日以内に返信
-
@react95/core good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 3 日以内に返信
-
@shikijs/stream: `ShikiStreamTokenizer.clone()` shares its `tokensStable` array with the original対応中かも @xyrolle が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信