solid-router: <Link> logs STRICT_READ_UNTRACKED warnings under Solid 2 when its options are spread from a <For> item
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 57/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Start in useLinkProps and link.tsx, which the issue identifies as likely places where props are read outside a tracking scope. Reproduce the warning with the supplied minimal reproducer using Solid 2 and options spread from a <For> item, then trace how those props are read in the component and effect callback. Done when the library no longer emits the reported warnings for reactive link options.
索引モデルが issue の本文から書いたものです。
説明
Which project does this relate to?
Solid Router (@tanstack/solid-router)
Describe the bug
With Solid 2, a <Link> whose options come from a spread of a value read from a <For> item logs two dev-only STRICT_READ_UNTRACKED warnings:
[STRICT_READ_UNTRACKED] Reactive value "merge" read directly in <Link> will not update. Move it into a tracking scope (JSX, a memo, or an effect's compute function).
[STRICT_READ_UNTRACKED] Reactive value "merge" read directly in an effect callback will not update. Move it into a tracking scope (JSX, a memo, or an effect's compute function).
<For each={items}>{item => <Link {...item.linkOptions}>{item.label}</Link>}</For>
The same <Link> outside <For>, spreading a plain object, logs nothing. So <Link> (useLinkProps/link.tsx) appears to read its props in the component body or an effect callback outside a tracking scope, which only shows up when those props are reactive. The warning says the value will not update, so reactive link options may go stale. I have not found a user-visible effect yet. The warnings also appear in rc.9.
Complete minimal reproducer
https://github.com/stephenlautier/solid-router-link-strict-read-repro
Steps to Reproduce the Bug
pnpm install && pnpm dev- Open the printed local URL.
- Check the browser console.
Expected behavior
No STRICT_READ_UNTRACKED warnings from library code.
Platform
@tanstack/solid-router2.0.0-rc.10,@tanstack/solid-start2.0.0-rc.10solid-js/@solidjs/web2.0.0-rc.21,vite-plugin-solid3.0.0-next.27- Vite 8.3.6, Node 24, Chromium, dev server only (Solid's diagnostics are not in production builds)
Additional context
I searched this repo's issues for STRICT_READ_UNTRACKED and found none.
- 主要言語
- TypeScript
- スター
- 15.3k
- フォーク
- 1.9k
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 46
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/router のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Masked navigation drops the first character of the hash each time (__tempLocation hash missing '#')対応中かも @hassanabrar202 が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
router-generator: lazy-load Prettier (costs ~300–450ms per build even when formatting is off)対応中かも @Sheraff が 27 日前に担当しました。 オープンpackage: router-generator performance
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
router-generator: sibling `physical()` subtrees in a virtual route config generate duplicate identifiers対応中かも @Sheraff が 27 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
docs(router): clarify static title fallback in SPA mode対応中かも @Rohan-Dedhia が 17 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
TanStack/router の issue をすべて見る
似ている issue
-
[BUG]: Shared links drop the configured basePath on GitHub Pages対応中かも @anshulchikhale30-p が今日担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
StabilityNexus/IdentityTokens-EVM-Frontend#182 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add: GTrekkerオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Koenkk/zigbee-herdsman-converters#13900 ·
メンテナーはふだん 1 日以内に返信
-
area: ui Bug Payload OSS
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
payloadcms/payload#19839 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
jeanibarz/knowledge-base-mcp-server#1291 ·
メンテナーはふだん 1 日以内に返信