Optimistic guess tears when the question's transaction is parked on another async read

Abierto
#4,559 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, typescript
Área
frontend

Línea de trabajo

The payload names no source files, so start from the linked issues: read #4536 for the setup and #4525 for how an answer re-bases the optimistic guess, then check the in-progress fix in #4558. Reproduce by adding a second async memo on filter that resolves after the issues query. Done means the frame stays whole in both outcomes the issue allows: the guess holds until the whole transaction commits, or the new question and its answer commit together.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Follow-up to #4536, found while fixing it in #4558. It reproduces on next too.

Repro: take #4536's setup, where one render effect reads the filter question and the keyed list. Add a second async memo on filter that answers after the issues query answers. Make the optimistic guess, then let the issues answer land while that second memo is still in flight.

Observed: open: [#2] | O-open commits and stays on screen until the other flight lands. The filter shows the old question beside the new answer's rows.

Expected: the frame stays whole. Either the guess stays until the whole transaction commits, or the new question and its answer land together (F-1, D-34 ¶3).

Cause (from #4558): when the answer re-bases the guess (#4525), the lane gets the question's transaction. If that transaction is still parked on another async read, the guess is dropped before the transaction commits.

Lenguaje dominante
TypeScript
Estrellas
36.2k
Forks
1.1k
Merge medio
11 h 28 min
PR fusionados (30 d)
461

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de solidjs/solid

Todos los issues de solidjs/solid

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.