[🐞] visible tasks should run only when visible during CSR
Open
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
Now that qwik-loader can handle new qvisible listeners, change CSR so that visible tasks that want intersection-observer emit the attribute and qwikevents, and don't run them immediately
Reproduction
Steps to reproduce
click rerender => it renders the client-side clock immediately
System Info
web
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 Qwik Runtime CSR path and reproduce the issue in the linked Qwik Playground example by clicking rerender. Trace how visible tasks are handled during CSR; done means intersection-observer tasks emit the qvisible attribute and qwikevents and do not run until the element is visible.
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