We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b698e commit bdf751aCopy full SHA for bdf751a
packages/svelte/src/internal/client/reactivity/sources.js
@@ -29,7 +29,6 @@ import * as e from '../errors.js';
29
import { derived } from './deriveds.js';
30
31
let inspect_effects = new Set();
32
-let allow_mutations = false;
33
34
/**
35
* @template V
@@ -147,12 +146,7 @@ export function mutate(source, value) {
147
146
* @returns {V}
148
*/
149
export function set(source, value) {
150
- if (
151
- !allow_mutations &&
152
- current_reaction !== null &&
153
- is_runes() &&
154
- (current_reaction.f & DERIVED) !== 0
155
- ) {
+ if (current_reaction !== null && is_runes() && (current_reaction.f & DERIVED) !== 0) {
156
e.state_unsafe_mutation();
157
}
158
0 commit comments