[🐞] [V2] useVisibleTask$ doesn't get re-triggered if it modifies a tracked signal as part of the task.
Nobody has claimed this yet.
- 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
If Im tracking a signal and changing it as part of a use visible task, it won't get re-triggered.
** Notice that useTask$ works as expected, or at least it seems to be working, maybe its just because it runs at the server first.
Reproduction
Steps to reproduce
enter the url, see It says "no change".
If you uncomment the stuff I did there with the set timeout, and comment out the assignment out of the settimout.. you will see the correct behavior, e.g it will say "changed" as expected.
System Info
-
Additional Information
No response
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 Qwik playground reproduction and verify the "no change" result using useVisibleTask$. Compare it with the stated useTask$ behavior and the setTimeout variant. Done means changing a tracked signal inside useVisibleTask$ causes the task to re-trigger as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100