-
-
Couldn't load subscription status.
- Fork 4.7k
Open
Description
Describe the bug
<option>{await work()}</option> duplicates the call to work because it injects a synthetic value attribute which just has the copied contents of the child expression. This wasn't a big deal in sync-land but async-land means much bigger duplication consequences. The fix isn't very complicated in practice; we basically "just" need to hoist the expression tag such that the compiled code does this instead:
const promise = work();
<option value={await promise}>{await promise}</option>Reproduction
Logs
System Info
ntySeverity
annoyance
gyzerok
Metadata
Metadata
Assignees
Labels
No labels