-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{#if} inside {#await} doesn't work #4044
Comments
Looks like it isn't using
|
That's what I saw. I tried doing stuff like |
Something like this: <script>
let foo = [false, true];
</script>
{#each foo as bar}
{#if bar}
<p>true</p>
{:else}
<p>false</p>
{/if}
{/each} is getting handled correctly. So whatever the each block is doing to rewrite things as |
The call to This map is populated by EDIT: More info.... Seems the |
Fixed in 3.16.1 - https://svelte.dev/repl/a5419c05b3314b83b75ce786562f2c06?version=3.16.1 |
Yay thanks |
Describe the bug
Having an
{#if}
inside of an{#await}
using a resolved object from{:then}
fails.Logs
ReferenceError: object is not defined
To Reproduce
https://svelte.dev/repl/a5419c05b3314b83b75ce786562f2c06?version=3.16.0
Expected behavior
it should render the if block
Information about your Svelte project:
Firefox 70.0.1
Manjaro GNU/Linux
3.16.0
Severity
It is blocking my app from upgrading.
The text was updated successfully, but these errors were encountered: