Reveal: resolved but blocked Pending boundary hides its fallback

Aperta Adatta ai principianti
#9,552 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia da packages/qwik/src/core/control-flow/pending.tsx e segui il modo in cui un confine Pending risolto ma bloccato sceglie tra il fallback e il contenuto. Confronta questo comportamento con la documentazione di Pending e con l’esempio «Reveal order» in /playground/reveal/. Il lavoro è completo quando B e C mantengono i fallback finché A non viene mostrato, rispettando la sequenza prevista nell’issue.

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

Descrizione

Inside <Reveal order="sequential"> (or reverse), a <Pending> boundary whose content has resolved but is still waiting for an earlier boundary shows neither its fallback nor its content. Its fallback disappears, leaving a gap until it's allowed to reveal.

The Pending docs say: "By default, a pending boundary that is blocked by Reveal can still show its fallback. Add collapsed to hide blocked pending boundaries completely." Here collapsed isn't set.

Repro

Playground example "Reveal order" from #9550 (/playground/reveal/), cards A (1500ms), B (500ms), C (1000ms), order sequential:

time visible
250ms Loading A… Loading B… Loading C…
750ms Loading A… Loading C… (B's fallback gone, no content)
1000ms Loading A… (B and C both empty)
1500ms A, B, C content

Expected: B and C keep their fallbacks until A reveals.

Likely cause

In packages/qwik/src/core/control-flow/pending.tsx, the fallback shows only while the state is 'fallback', and the content only when the state is 'content' and the boundary may reveal. A resolved but blocked boundary is 'content' and not allowed to reveal, so both are hidden. It may be intended for resolved boundaries, but then the docs should say so.

🤖 Generated with Claude Code


Generated by Claude Code

Lingua principale
TypeScript
Stelle
22.1k
Fork
1.4k
Merge medio
1g 13h
PR unite (30g)
159

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 QwikDev/qwik

Tutte le issue di QwikDev/qwik

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.