Skip to content

Commit

Permalink
Update packages/svelte/src/compiler/phases/3-transform/client/visitor…
Browse files Browse the repository at this point in the history
…s/template.js
  • Loading branch information
dummdidumm authored Mar 13, 2024
1 parent 0758095 commit 21e52a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2344,7 +2344,8 @@ export const template_visitors = {
each_type |= EACH_IS_STRICT_EQUALS;
}

// If the array is a store expression, we need to invalidate it when the array is changed
// If the array is a store expression, we need to invalidate it when the array is changed.
// This doesn't catch all cases, but all the ones that Svelte 4 catches, too.
let store_to_invalidate = '';
if (node.expression.type === 'Identifier' || node.expression.type === 'MemberExpression') {
const id = object(node.expression);
Expand Down

0 comments on commit 21e52a0

Please sign in to comment.