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 83d2251 commit 247cfcfCopy full SHA for 247cfcf
src/compile/nodes/Component.ts
@@ -207,9 +207,9 @@ export default class Component extends Node {
207
const conditions = [...allDependencies].map(dep => `changed.${dep}`).join(' || ');
208
209
updates.push(deindent`
210
- var ${name_changes} = ${allDependencies.size === 1 ? `${conditions}` : `(${conditions})`} && @getSpreadUpdate(${levels}, [
+ var ${name_changes} = ${allDependencies.size === 1 ? `${conditions}` : `(${conditions})`} ? @getSpreadUpdate(${levels}, [
211
${changes.join(',\n')}
212
- ]);
+ ]) : ${name_changes};
213
`);
214
} else {
215
this.attributes
0 commit comments