Svelte CSUI behaving unexpectedly
The CSUI contains both
<script lang="ts">
and <script lang="ts" context="module">
Suppose I have
As far as I've tried, every time the state within the container where the injected CSUI gets updated, (in my case, pressing like/dislike), the CSUI script re-runs as if it's being remounted1 Reply
Just confirmed, for some reason it gets re-mounted, despite having
I solved it by mounting it higher up in the DOM tree
@lab I'm facing the same issue on Twitch now, except that I cannot seem to find a "proper element" to mount to
Seems like a mounting issue on Plasmo's side that might be influenced by the web page itself
This time I got around it by making sure that a certain element is present, e.g.