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

Aperta
#308 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

(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>
Lingua principale
TypeScript
Stelle
1.1k
Fork
222
Merge medio
2h 10m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vuejs/repl

Tutte le issue di vuejs/repl

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.