if I declare on:change before bind:checked={$variable} and in the on:change function log out the value of the $variable, it logs out the previous state rather than the newly changed state, as if it is executing the on:change function before actually changing the variable state.
Describe the bug
if I declare on:change before bind:checked={$variable} and in the on:change function log out the value of the $variable, it logs out the previous state rather than the newly changed state, as if it is executing the on:change function before actually changing the variable state.
Reproduction
https://svelte.dev/repl/a8c751e708834314b4a4af51d3d16870?version=3.55.1
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response