Skip to content

[🐞] V2: Old reactivity issue #8217

@gnemanja

Description

@gnemanja

Which component is affected?

Qwik Runtime

Describe the bug

  1. Iterate through an array
  2. Read an item's property and pass it as prop (_fnSignal)
  3. Use computed in child component won't trigger

Passing the item as a whole OR creating a 150 char long expression works.

I think this reactivity issue is as old as v2 (might help with debugging)

Reproduction

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

Steps to reproduce

Run the stackblitz and click on the button. Check browser console for which USE COMPUTED are triggered. You will see that:

  1. directlly passing array item -- Works
  2. passing item's property -- Doesn't work
  3. passing item's property but making a hack expression of 150 characters -- Works

System Info

The version on stackblitz is beta 16, but can be reproduced on many different versions

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions