Skip to content
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

Animation doesn't complete #4465

Closed
kewp opened this issue Feb 25, 2020 · 3 comments
Closed

Animation doesn't complete #4465

kewp opened this issue Feb 25, 2020 · 3 comments

Comments

@kewp
Copy link

kewp commented Feb 25, 2020

I have a variable I use to basically fade a component out, and then update, like this:

{#if myvar}
  <Component2 />
{:else}
  <Component2 />
{/if}

I don't know a better way to do this?

Anyway, for some reason at random times the old object stays behind. I'm just hoping someone might have an idea why this might happen? I don't understand how Svelte would implement the above code.

I created a REPL for this https://svelte.dev/repl/aa8de3c5614744838c7e0baeb83fd1c4?version=3.19.1 though I'm not seeing the same behaviour (which would mean you'd see two hello messages).

@kewp
Copy link
Author

kewp commented Feb 26, 2020

@Conduitry don't understand why you closed this?

@Conduitry
Copy link
Member

Because you opened two copies of this issue - #4464

@kewp
Copy link
Author

kewp commented Feb 26, 2020

Oh right I see. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants