Skip to content

Files

Latest commit

 

History

History
9 lines (5 loc) · 419 Bytes

no-use-visible-task.md

File metadata and controls

9 lines (5 loc) · 419 Bytes

Pattern: Use of useVisibleTask$()

Issue: -

Description

useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead.

If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment.