Svelte: await block next to if block gets out of order

Created on 10 May 2018  路  5Comments  路  Source: sveltejs/svelte

REPL:

{#await Promise.resolve(42)}
  <p>waiting...</p>
{:then answer}
  <p>the answer is {answer}</p>
{/await}

{#if true}
  <p>true!</p>
{/if}

cc @stalkerg

bug

All 5 comments

Thanks, I thought it will not work with REPL, but it is.

this seems to be rather severe, any progress so far?

Still nothing :( it's why I don't recommend to use #await (and transition).

I ran into what looks like the same issue. REPL As far as I can tell the problem appeared in version 2.5.0.

Further testing shows that the problem appeared in 46c6b4bfe364c1841d659dc8c403fc575038bb08.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juniorsd picture juniorsd  路  3Comments

davidcallanan picture davidcallanan  路  3Comments

1u0n picture 1u0n  路  3Comments

robnagler picture robnagler  路  3Comments

Rich-Harris picture Rich-Harris  路  3Comments