Update docs on using until() in attribute interpolations
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 142
- Forks
- 230
- PR merge metrics
- No merged PRs in 30d
Description
We've just introduced a new, hopefully minor and rarely hit, breaking change with how until() operates. Previously when until() was used in an interpolated attribute binding it would prevent the attribute from being rendered at all until there was an initial value. Now the attribute is rendered with an empty string where the `until()` occurs.
The new behavior is as if you wrote `until(promise, '')`. To get the old behavior you need to opt-in with `nothing`: `until(promise, nothing)`.
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
Locate the documentation covering until() in interpolated attribute bindings and read the surrounding examples. Update it to explain that the default behavior renders an empty string, and that until(promise, nothing) restores the previous behavior; done when both behaviors and the opt-in are clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100