You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thx for explanation but in production it is not just fetching when the component is visible but like I tried to describe.
If the code is not touching qwik it si loading on click.
Cheers
Which component is affected?
Qwik Runtime
Describe the bug
"@builder.io/qwik": "^1.5.1",
"@builder.io/qwik-city": "^1.5.1",
Writing onClick$ handlers in some cases loads js before event actually happens.
I was expecting that code would load on actual click event.
`
<button
onClick$={() => {
console.log('no javascript is loaded on page load only on click');
}}
>
test1
`
using signals or functions from custom reusable hook in onClick handler, loads even more js, before onClick event actually happens
sometimes hook can be rewritten in normal function then code is again not loaded before event actually happens.
Is this expected or its a bug?
Reproduction
https://stackblitz.com/edit/qwik-starter-suaufp?file=src%2Froutes%2Findex.tsx
Steps to reproduce
try different button examples one by one and check network tab
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: