solid-router: <Link> logs STRICT_READ_UNTRACKED warnings under Solid 2 when its options are spread from a <For> item
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 15.3k
- Forks
- 1.9k
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 46
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TanStack/router
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Masked navigation drops the first character of the hash each time (__tempLocation hash missing '#')Posiblemente ocupada @hassanabrar202 la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
router-generator: lazy-load Prettier (costs ~300–450ms per build even when formatting is off)Posiblemente ocupada @Sheraff la tomó hace 27 días. Abiertopackage: router-generator performance
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
router-generator: sibling `physical()` subtrees in a virtual route config generate duplicate identifiersPosiblemente ocupada @Sheraff la tomó hace 27 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
docs(router): clarify static title fallback in SPA modePosiblemente ocupada @Rohan-Dedhia la tomó hace 17 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/router
Issues similares
-
[BUG]: Shared links drop the configured basePath on GitHub PagesPosiblemente ocupada @anshulchikhale30-p la tomó hoy. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
StabilityNexus/IdentityTokens-EVM-Frontend#182 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add: GTrekkerAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Koenkk/zigbee-herdsman-converters#13900 ·
Los mantenedores suelen responder en 1 día
-
area: ui Bug Payload OSS
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
payloadcms/payload#19839 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
jeanibarz/knowledge-base-mcp-server#1291 ·
Los mantenedores suelen responder en 1 día