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 c3eb8b0 commit 6cb0605Copy full SHA for 6cb0605
packages/svelte/src/internal/client/proxy.js
@@ -200,8 +200,7 @@ const state_proxy_handler = {
200
const metadata = target[STATE_SYMBOL];
201
let s = metadata.s.get(prop);
202
203
- // if we're reading a property in a reactive context, create a source,
204
- // but only if it's an own property and not a prototype property
+ // create a source, but only if it's an own property and not a prototype property
205
if (s === undefined && (!(prop in target) || get_descriptor(target, prop)?.writable)) {
206
s = (metadata.i ? source : mutable_source)(proxy(target[prop], metadata.i, metadata.o));
207
metadata.s.set(prop, s);
0 commit comments