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

on:ready never lauched if component dynamically rendered #17

Open
nosovk opened this issue Oct 24, 2023 · 1 comment
Open

on:ready never lauched if component dynamically rendered #17

nosovk opened this issue Oct 24, 2023 · 1 comment

Comments

@nosovk
Copy link

nosovk commented Oct 24, 2023

If component wrapped into {if} block, then on:ready event never fired.
Repl: https://svelte.dev/repl/95841074fe1648cf883b2cd5cffde2f1?version=4.2.2
The key in a repl could be wrong, but the problem exists in a wild life also. Currently, I've just added a button to manual launch execute, as in an example. But it would be nice to avoid an additional step, and subscribe to an event.

@basaran
Copy link
Owner

basaran commented May 4, 2024

Hello, I am not using the component with svelte expressions, as I had noticed inconsistent behavior when I had tried to build the package with {#await}.

I will test your reproduction when I have some time this week and report back.

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