[2.0.4] An action started from a cleanup that only waits holds back a later, unrelated action's writes
Los mantenedores suelen responder en 1 día
@yumemi-thomas ya está trabajando en esto.
Desde el 27/11/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, typescript
- Área
- frontend, performance
Línea de trabajo
Start with core/scheduler.ts, especially the logic that clears flushTransaction after a transaction queues no writes, then reproduce with the linked Solid playground using the provided wait, bump, and cleanup flow. The bug is done when bump() commits its signal update immediately even while wait() remains suspended, without regressing the related cleanup case in #5242.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
A cleanup starts an action that writes nothing and just waits. While it waits, an unrelated action sets a signal and ends. That write should show right after, but it stays hidden until the cleanup's action ends. Started outside a cleanup, the same waiting action doesn't hold anything back.
Reproduction
Open in the Solid playground (2.0.4)
import { createSignal, createEffect, action, Show } from "solid-js";
// Writes nothing; waits until "3. finish" is clicked.
let release: (() => void) | undefined;
const wait = action(function* () {
yield new Promise<void>(r => (release = r));
});
function Panel() {
createEffect(
() => 1,
() => () => void wait() // the effect's cleanup starts the waiting action
);
return <p>panel is open</p>;
}
export default function App() {
const [open, setOpen] = createSignal(true);
const [count, setCount] = createSignal(0);
const close = action(function* () {
setOpen(false);
});
const bump = action(function* () {
setCount(2); // unrelated to `wait`
});
return (
<>
<button onClick={() => close()}>1. close panel</button>
<button onClick={() => bump()}>2. set count to 2</button>
<button onClick={() => release?.()}>3. finish</button>
<Show when={open()}>
<Panel />
</Show>
<p>count: {count()}</p>
</>
);
}
Steps
- Click 1. close panel. The cleanup starts
wait(). - Click 2. set count to 2.
- Click 3. finish.
Expected
count: 2 after step 2. bump and wait share nothing, so bump commits on its own (D-4, D-9).
Actual
count: 0 after step 2, and count: 2 only after step 3. If the promise never settles, count never shows 2. Calling wait() from the close button instead of the cleanup gives count: 2 after step 2.
Same in 2.0.3, 2.0.4 and main (510bb8d01), dev and prod.
Cause
The cleanup runs while the closing action lands, and wait() opens a transaction that stays open because it yields. It queued no writes, so the flush ends without clearing flushTransaction (core/scheduler.ts), and the waiting action stays the current transaction. bump() joins it instead of opening its own, so its write waits for wait.
Similar to #3141 (fixed in #3145) but through a cleanup. #5242 covers the case where the cleanup's action writes an optimistic value, not this one.
- Lenguaje dominante
- TypeScript
- Estrellas
- 37k
- Forks
- 1.2k
- Merge medio
- 8 h 43 min
- PR fusionados (30 d)
- 365
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
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
Los mantenedores suelen responder en 1 día
-
[2.0.4] Nested `<Errored>`: the outer boundary stays on an error the inner one rethrew, after the next error is one the inner one handlesPosiblemente ocupada @MilindChatrabhuji la tomó hace 2 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
Todos los issues de solidjs/solid
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
activepieces/activepieces#17974 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
OHDSI/Data2Evidence#3777 ·
Los mantenedores suelen responder en 3 días
-
bug enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
AOSSIE-Org/PictoPy#1802 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Termix-SSH/Plugin-Snippets#26 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
agent-reported bug from-app needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nightly-labs/openbot#20504 ·
Los mantenedores suelen responder en 1 día