Skip to content

Commit

Permalink
docs: ✏️ add comment to note reason for svelte specifics
Browse files Browse the repository at this point in the history
add comment to note

BREAKING CHANGE: 🧨 all

✅ Closes: none
  • Loading branch information
JonathonRP committed Dec 8, 2024
1 parent 5ae3550 commit 44a4c33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/motion-start/render/VisualElement.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ export abstract class VisualElement<

private bindToMotionValue(key: string, value: MotionValue) {
if (this.valueSubscriptions.has(key)) {
// this is to insure it runs on unmount and not during mount of keyed element
$effect(() => () => {
this.valueSubscriptions.get(key)!();
});
Expand Down

0 comments on commit 44a4c33

Please sign in to comment.