svonix icon indicating copy to clipboard operation
svonix copied to clipboard

Svelte component renders then immediately disappears

Open omar2205 opened this issue 3 years ago • 3 comments
trafficstars

When rendering a svelte component it renders and then disappears.

omar2205 avatar Apr 24 '22 07:04 omar2205

This is some weird svelte behaviour you need to consider that svelte "renders" or passes the code "twice" hence the first time, then the second time.

jesusalc avatar Jun 21 '22 17:06 jesusalc

It is likely that you're rendering in a LiveView, so you should set up some LV hooks in order to re-render Svelte component as well

chvanikoff avatar Mar 19 '23 10:03 chvanikoff

Could be Are you running in a production server with your package and svelte ?

søn. 19. mar. 2023 kl. 11:34 skrev Roman @.***>:

It is likely that you're rendering in a LiveView, so you should set up some LV hooks in order to re-render Svelte component as well

— Reply to this email directly, view it on GitHub https://github.com/nikokozak/svonix/issues/1#issuecomment-1475198167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7CTA6E6ADXIWLY7SET2DW43OMHANCNFSM5UF3SQIA . You are receiving this because you commented.Message ID: @.***>

jesusalc avatar Mar 19 '23 19:03 jesusalc