Skip to content

Commit

Permalink
clean observer
Browse files Browse the repository at this point in the history
  • Loading branch information
adiguba committed Feb 21, 2025
1 parent 2ae5869 commit be008ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script>
import { onDestroy } from "svelte";
let {
clazz = 'custom',
foo = true,
Expand Down Expand Up @@ -32,6 +34,8 @@
return result;
}
onDestroy(() => { if (observer) observer.disconnect(); });
</script>

<main id="main" class:browser>
Expand Down

0 comments on commit be008ae

Please sign in to comment.