only fire binding callbacks when values change

pull/7738/head
Richard Harris 7 years ago
parent 3b6bada541
commit cc50321f95

@ -85,11 +85,10 @@ export function init(component, options, instance, create_fragment, not_equal, p
$$.ctx = instance $$.ctx = instance
? instance(component, props, (key, value) => { ? instance(component, props, (key, value) => {
if ($$.bound[key]) $$.bound[key](value);
if ($$.ctx) { if ($$.ctx) {
const changed = not_equal(value, $$.ctx[key]); const changed = not_equal(value, $$.ctx[key]);
if (ready && changed) { if (ready && changed) {
if ($$.bound[key]) $$.bound[key](value);
make_dirty(component, key); make_dirty(component, key);
} }

Loading…
Cancel
Save