Skip to content

[🐞] useVisibleTask$ doesn't fire in conditional awaiting component #7567

@romadryud

Description

@romadryud

Which component is affected?

Qwik Runtime

Describe the bug

Hi, after a while I noticed that useVisibleTask$ doesn't run in nested component if it renders conditionally after waiting. There is reproduction, if you replace <Something /> with <>all good</> all will work. In my case I wait for the list and then in empty state component I wait for another thing.

In the reproduction it's just broke the server meanwhile locally there is no error but hook with one console.log also didn't fire.

Reproduction

https://stackblitz.com/edit/github-yhtfuwbc?file=src%2Froutes%2Findex.tsx

Steps to reproduce

No response

System Info

System:
    OS: macOS 15.4.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 5.15 GB / 64.00 GB
    Shell: 3.4.1 - /usr/local/bin/fish
  Binaries:
    Node: 22.11.0 - ~/.asdf/installs/nodejs/22.11.0/bin/node
    Yarn: 1.22.22 - ~/.asdf/installs/nodejs/22.11.0/.npm/bin/yarn
    npm: 10.9.0 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 10.8.0 - ~/Library/pnpm/pnpm
    bun: 0.1.4 - ~/.bun/bin/bun
  Browsers:
    Chrome: 136.0.7103.93
    Safari: 18.4
  npmPackages:
    @builder.io/qwik: 1.13.0 => 1.13.0
    @builder.io/qwik-city: 1.13.0 => 1.13.0
    typescript: 5.4.5 => 5.4.5
    undici: * => 7.3.0
    vite: 5.3.5 => 5.3.5

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    STATUS-2: missing infoIncomplete issue/pr template or missing important informationTYPE: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions