If no fallback slot is provided, no blank should be displayed if possible when timeout is specified
Open
Nobody has claimed this yet.
:sparkles: feature request
need guidance
scope: suspense
- Dominant language
- TypeScript
- Stars
- 54.4k
- Forks
- 9.2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 140
Description
Version
3.1.1
Reproduction link
Steps to reproduce
- Check the checkbox
What is expected?
- Other content to be replaced by Parent after 1s
What is actually happening?
- After 500ms (the timeout), nothing is displayed
- After 1s, Parent is displayed
I think this default would make more sense and could be easily replaced with the existing behavior by providing an empty fallback slot
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Playground and reproduce the Suspense case using a 500ms timeout, no fallback slot, and a Parent component that resolves after 1s. Read the Suspense implementation and related tests to determine how the timeout handles absent fallback content. Done means existing content remains visible when possible, while an explicitly empty fallback preserves the current behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100