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 b6575cc commit 50d350fCopy full SHA for 50d350f
packages/svelte/src/compiler/phases/2-analyze/index.js
@@ -1255,10 +1255,7 @@ const common_visitors = {
1255
binding.kind === 'derived') &&
1256
// We're only concerned with reads here
1257
parent.type !== 'AssignmentExpression' &&
1258
- parent.type !== 'UpdateExpression' &&
1259
- (parent.type !== 'MemberExpression' ||
1260
- (context.path.at(-2)?.type !== 'AssignmentExpression' &&
1261
- context.path.at(-2)?.type !== 'UpdateExpression'))
+ parent.type !== 'UpdateExpression'
1262
) {
1263
w.state_referenced_locally(node);
1264
}
0 commit comments