In Svelte5, why is the onload event not triggering the function foo()
in src/routers/+layout.svelte
?
<script> const foo = () => console.log('foo triggered')</script><svelte:window onload={foo} />
In Svelte5, why is the onload event not triggering the function foo()
in src/routers/+layout.svelte
?
<script> const foo = () => console.log('foo triggered')</script><svelte:window onload={foo} />