QwikDev / QwikDev/qwik

[🐞] v2: inlined function returning jsx does not render

Open
#8,425 2 comments 0 reactions 0 assignees View on GitHub

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

https://qwikdev-build-v2.qwik-8nx.pages.dev/playground/#f=Q040FgQSDT2bIgoK1RAzwFoyMoEA0gKpxWip4E56hpZIjStSkh6KT0cTHi0SHgA

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.