revert to component.get() in _bind

pull/1173/head
Rich Harris 7 years ago
parent ec488fe347
commit 9dcf59868d

@ -219,10 +219,8 @@ export default class Component extends Node {
componentInitProperties.push(`data: ${name_initial_data}`); componentInitProperties.push(`data: ${name_initial_data}`);
block.addVariable('__state__TODO', 'state');
block.builders.update.addLine(`__state__TODO = state`);
const initialisers = [ const initialisers = [
'state = __state__TODO', 'state = #component.get()',
hasLocalBindings && 'newState = {}', hasLocalBindings && 'newState = {}',
hasStoreBindings && 'newStoreState = {}', hasStoreBindings && 'newStoreState = {}',
].filter(Boolean).join(', '); ].filter(Boolean).join(', ');

Loading…
Cancel
Save