Skip to content

Commit

Permalink
fix: test for simple_set and simple_set
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti committed Jan 24, 2025
1 parent 873cd5f commit 35e2afe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/svelte/src/internal/client/reactivity/sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ export function simple_set(source, value, should_proxy = false, needs_previous =

source.v = new_value;

source.o?.onchange?.();

return new_value;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
constructor(){
this.#in_constructor++;
this.#in_constructor = 42;
this.#in_constructor_proxy.count++;
}
}
Expand Down

0 comments on commit 35e2afe

Please sign in to comment.