Describe the bug
{#async} block causes an infinite loop, like so:
func in {#await func()}func, assign to a variable outside of the function's scope{:then} blockfunc() will now be called in an infinite loop.To Reproduce
Expected behavior
Severity
Well our users don't like their browsers in infinite loops.
It would be great to have some kind of counter running behind the scenes, in development mode. Some way of detecting that "hey were probably in an infinite loop" and then stop with an error that gives a clue where.
Over in Angular world there is something along these lines. It produces the error "expression changed after it has been checked". It is very helpful for noticing certain kinds of problematic code early in development.
<Options options={res.options}/>
This solves your issue
This solves your issue
@ms747 Yes, but it doesn't remove the bug in Svelte.
@arggh My bad, Yes there is a bug.
This appears to have been fixed in 3.9.1
Most helpful comment
It would be great to have some kind of counter running behind the scenes, in development mode. Some way of detecting that "hey were probably in an infinite loop" and then stop with an error that gives a clue where.
Over in Angular world there is something along these lines. It produces the error "expression changed after it has been checked". It is very helpful for noticing certain kinds of problematic code early in development.