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
Describe the bug #each block doesn't change when a new state is triggered by a transitioning component.
The weird glitch is happening when the #each block is placed inside an #if in combination with a transitioning component and Promise loaded items.
Expected behavior
The #each block to properly reflect the iterated array state and to be not affected by the transitions of unrelated components.
Workarounds
There are a couple of workarounds I found that strangely "fixes" the repl:
v1. Remove the transition from Menu.svelte
v2. Move the <Menu> component outside the #if block
v3. In Menu.svelte change the order of the calls in function changeOption(newOption), aka.:
functionchangeOption(newOption){hide();// triggers the transitionoption=newOption;}