Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

rc.9: overlapping optimistic moves duplicate an item across filtered keyed lists

クローズ
#3,548 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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:

  1. Moves card 0 to lane 1, order 1.
  2. Moves card 0 to lane 2, order 6.
  3. Moves card 1 to lane 1, order 9.
  4. Publishes the authoritative result of action 1, resolves only action 1, and allows a task turn.
  5. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

solidjs/solid のほかの issue

solidjs/solid の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。