`computed` returns a data trigger of the reference type that does not match the expectation

Abierto
#308 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Start with the linked Vue playground bug demo and reproduce the callback firing when the “push” subitem is executed. Compare it with the stated expected behavior, where the callback runs initially and again only after replacing testArr, then identify the REPL entry point handling this execution and verify the corrected behavior in the demo.

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

Descripción

(bug demo)

It should only perform the callback once initially, but it is also performed when the 'push' subitem is executed

When I run this code in the project, it works as expected, but playground refires every time I push it

Image

The following actions should trigger the callback again:

<button @click="testArr = [{ label: '3', value: '3' }]">修改arr</button>
Lenguaje dominante
TypeScript
Estrellas
1.1k
Forks
222
Merge medio
2 h 10 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 vuejs/repl

Todos los issues de vuejs/repl

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.