Skip to content

[🐞] v2: task function does not re-run when props are tracked, and an inline component is part of the prop drill. #7765

@thejackshelton

Description

@thejackshelton

Which component is affected?

Qwik Runtime

Describe the bug

Task functions do not re-run when props are tracked, and an inline component is part of the prop drill.

It does get the updated state, but somewhere along the way it looks like v2 loses the ability to track the prop.

In Qwik v1, this re-runs the task. In v2 it does not.

In our use case this isn't as big of a deal since we are moving away from inline components, but it still breaks the app nonetheless.

Reproduction

https://qwikdev-build-v2.qwik-8nx.pages.dev/playground/#f=7VfLTsMwEPwV4wPKITVCnIrqHlA59EKQKB9QIiKBIrVS6AFZ%2Fndmd%2F1KSaWCxI1Lm4e9Xs%2BOZycFaeY3aTtOCgOy7YemqxUxuS4oUeeOzJesdbESeuxZ9JncEqDehlXsUTYvUnXbfnhFxhiXWnaFLLkB%2BxRDyZMqR8EcelxaAd08b57Wq3tdF6sZHOcDraAQjtc5UaHmY0%2FFTDDHlmrdcTCfxrBFsrrrIbT0M2t3vcjwrAUKEKr3A5pT9xludZiJOqXasunislgtNzo7DycwFvuWFIDhxbc9%2BsyR8EY1m8fME7F3R0whTEaMDjgQqYMRDGxZaBhFvVSXYFEE51a97AA%2FfF6uVdQSBLrbooE5YwxH8kvH%2F6alnosz6RdXYRAJzUQiPN%2BOaPW7nM7hlkAtGcZYUyxbPwSSTQydpFhp0%2BnAxcNbuvLTMns9Lz4kfiKzo8P6L7J%2FIbJf

Steps to reproduce

Repro can be copy pasted with the small snippet above.

  • Pass a prop
  • Have an inline component that returns children
  • Have a Qwik component that is part of that jsx children object

Props can no longer be tracked

System Info

System:
    OS: macOS 15.5
    CPU: (16) arm64 Apple M4 Max
    Memory: 1.50 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
    pnpm: 10.7.0 - ~/.nvm/versions/node/v22.14.0/bin/pnpm
    bun: 1.1.7 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 135.1.77.95
    Chrome: 138.0.7204.170
    Safari: 18.5

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions