Implemented inline invalidating

pull/3532/head
Bendegúz Hajnal 6 years ago
parent 94b583afff
commit bbf53e8750

@ -195,7 +195,6 @@ export default function dom(
const single = (
node.type === 'AssignmentExpression' &&
assignee.type === 'Identifier' &&
parent.type === 'ExpressionStatement' &&
assignee.name[0] !== '$'
);
@ -205,6 +204,7 @@ export default function dom(
const variable = component.var_lookup.get(name);
if (variable && (variable.hoistable || variable.global || variable.module)) return;
debugger
if (single && !(variable.subscribable && variable.reassigned)) {
if (variable.referenced || variable.is_reactive_dependency || variable.export_name) {

@ -106,6 +106,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
if ($$.bound[key]) $$.bound[key](value);
if (ready) make_dirty(component, key);
}
return value;
})
: props;

Loading…
Cancel
Save