[2.0] Mounting a memo during a held action can crash a render callback
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, typescript
- Área
- frontend
Línea de trabajo
Start by reproducing the crash in the linked playground, then trace the Solid 2.0 render callback path for a mounted <Show> child whose memo reads a held signal while another attribute changes. The issue names no source files or tests, so locate the relevant callback and add a regression test for the described timing. Done means the attribute update no longer throws or halts reactivity, and the subtree renders when the action settles.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
While an action holds a signal write, mount a child that creates a memo reading that signal and a div whose attributes read the held signal and a separate signal. Changing the separate signal before the action settles crashes the generated render callback and halts reactivity.
Chromium reports:
TypeError: Cannot destructure property 'e' of 'undefined' as it is undefined.
[REACTIVITY_HALTED] An uncaught error halted the reactive system.
Firefox reports TypeError: (destructured parameter) is undefined.
Your Example Website or App
https://s.olid.uk/id/4hhg1oZMQaasPugrwwLnfA
Steps to Reproduce the Bug or Issue
- Open the linked playground.
- Click Run once.
- The action stages a signal write and waits 2 seconds. After 100 ms, the Show child mounts and creates a memo reading that signal. After another 100 ms, a separate signal changes the div's title.
- Observe the TypeError and REACTIVITY_HALTED in the console.
Expected behavior
The pending read may hold the subtree's reveal, but updating another attribute should not invoke its render callback with undefined or halt reactivity. The subtree should render normally when the action settles.
Screenshots or Videos
No response
Platform
- OS: Linux (browser reproduction)
- Browser: Chromium 153.0.8010.12; Firefox 155.0
Additional context
Solid experimental preview mizulu/solid2@6f77b1b for solid-js, @solidjs/signals, and @solidjs/web.
The reproduction uses three signals, one action, one Show, and one createMemo. No stores, optimistic state, lists, routing, lazy components, or refresh runtime are involved. It uses ordinary 100 ms delays between updates; no manual flush or microtask scheduling. Tailwind is disabled.
- Lenguaje dominante
- TypeScript
- Estrellas
- 36.1k
- Forks
- 1.1k
- Merge medio
- 11 h 42 min
- PR fusionados (30 d)
- 326
Preparar el entorno
- 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 solidjs/solid
-
[2.0 next, regressed after rc.13] Async-generator action times out on its authoritative live echoAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 Medio día Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
Todos los issues de solidjs/solid
Issues similares
-
DB-plane provider_chat_options.* is accepted by config set but never merged into the loaded configAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Bump Firebase JS SDK (12.19.0 → 13.0.0)Posiblemente ocupada @SelaseKay la tomó hoy. AbiertoNeeds Attention type: enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
invertase/react-native-firebase#9364 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
clouflaure de fernandoAbiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
cloudflare/mcp#271 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 4 días
-
[fullsend] E2E: rhdh-version-override — run-e2e.sh overrides RHDH_VERSION to non-existent 2.1Abiertoe2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
redhat-developer/rhdh-plugin-export-overlays#4261 · 1 comentario ·
Los mantenedores suelen responder en 1 día