Skip to content

Commit bdf751a

Browse files
committed
fix: $state.link bug fixes
1 parent b3b698e commit bdf751a

File tree

1 file changed

+1
-7
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+1
-7
lines changed

packages/svelte/src/internal/client/reactivity/sources.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import * as e from '../errors.js';
2929
import { derived } from './deriveds.js';
3030

3131
let inspect_effects = new Set();
32-
let allow_mutations = false;
3332

3433
/**
3534
* @template V
@@ -147,12 +146,7 @@ export function mutate(source, value) {
147146
* @returns {V}
148147
*/
149148
export function set(source, value) {
150-
if (
151-
!allow_mutations &&
152-
current_reaction !== null &&
153-
is_runes() &&
154-
(current_reaction.f & DERIVED) !== 0
155-
) {
149+
if (current_reaction !== null && is_runes() && (current_reaction.f & DERIVED) !== 0) {
156150
e.state_unsafe_mutation();
157151
}
158152

0 commit comments

Comments
 (0)