[🐞] V2 - useOnDocument is not executed #7230
Labels
STATUS-2: team is working on this
Scheduled for work by the core team
TYPE: bug
Something isn't working
VERSION: upcoming major
Which component is affected?
Qwik Runtime
Describe the bug
In the example I have a provider that contains a
useOnDocument('load')
and this provider is in the mainlayout
, but theuseOnDocument
is never executed.But if the
useOnDocument('load')
is placed in anindex
of a page, it is executed.Reproduction
https://stackblitz.com/edit/github-6f6maw-tnantexa?file=src%2Fproviders%2Fbreakpoint.tsx
Steps to reproduce
Enter the playground and you will see that the console never executes the
load
message.You can also check that when the
useOnDocument(‘load’)
is not executed, the pixel information is not displayed.System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: