8000 fix: use `state` instead of `source` in reactive classes by paoloricciuti · Pull Request #16239 · sveltejs/svelte · GitHub
[go: up one dir, main page]

Skip to content

fix: use state instead of source in reactive classes #16239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 9, 2025
Prev Previous commit
Next Next commit
fix: use #source in set too
  • Loading branch information
paoloricciuti committed Jul 7, 2025
commit 5670a210af72549e08a9d08efd0af403ca097fa6
2 changes: 1 addition & 1 deletion packages/svelte/src/reactivity/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class SvelteMap extends Map {
var version = this.#version;

if (s === undefined) {
s = state(0);
s = this.#source(0);

if (DEV) {
tag(s, `SvelteMap get(${label(key)})`);
Expand Down
0