🧩 Plasmo Developers�PD
🧩 Plasmo Developers3y ago
5 replies
Avi

Svelte CSUI behaving unexpectedly

The CSUI contains both <script lang="ts"> and <script lang="ts" context="module">
Suppose I have
<script lang="ts">
  let lastTitle = document.title;
  console.log(lastTItle);
</script>

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 remounted
Was this page helpful?