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
REPL. This works for DOM code, as the let happens outside the update function:
<script>letnumber=0;// this generates bad code in SSR mode
$: max=Math.max(number,max||0);</script><style>input {
width:100%;
}
</style><inputtype=rangebind:value={number}><p>{number} / {max}</p>
In SSR mode, this code gets generated, resulting in a TDZ:
letmax=Math.max(number,max||0);
We could fix it straightforwardly enough by doing this instead:
letmax;max=Math.max(number,max||0);
Perhaps we should just do it in these rare cases though.
The text was updated successfully, but these errors were encountered:
REPL. This works for DOM code, as the
let
happens outside theupdate
function:In SSR mode, this code gets generated, resulting in a TDZ:
We could fix it straightforwardly enough by doing this instead:
Perhaps we should just do it in these rare cases though.
The text was updated successfully, but these errors were encountered: