[🐞] v2: inlined function returning jsx does not render
Open
Nobody has claimed this yet.
bug
runtime
V2
- Dominant language
- TypeScript
- Stars
- 22.1k
- Forks
- 1.4k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
Which component is affected?
Qwik Runtime
Describe the bug
import { component$ } from '@qwik.dev/core';
export default component$(() => {
return (
<div>
<h1>Hello from Qwik!</h1>
{() => <div>hiiii</div>} // <-- does not render
</div>
);
});
Reproduction
Steps to reproduce
No response
System Info
...
Additional Information
In v1 we had an SSR error instead https://qwik.dev/playground/#f=Q040FgQSDT2bIgoK1RAzwFoyMoEA0gKpxWipjCa9oZn0AA
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 v2 playground reproduction and the Qwik Runtime area named in the report; confirm that the inline function returning JSX produces no rendered output. Compare its behavior with the linked v1 reproduction, then add regression coverage showing the inline JSX renders correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100