pass updated state to observers

pull/769/head
Rich Harris 8 years ago
parent 9b9aa0416f
commit caffcd5f79

@ -143,9 +143,9 @@ export function _set(newState) {
this._state = assign({}, oldState, newState);
this._recompute(changed, this._state, oldState, false);
dispatchObservers(this, this._observers.pre, changed, newState, oldState);
dispatchObservers(this, this._observers.pre, changed, this._state, oldState);
this._fragment.update(changed, this._state);
dispatchObservers(this, this._observers.post, changed, newState, oldState);
dispatchObservers(this, this._observers.post, changed, this._state, oldState);
}
export function _setDev(newState) {

Loading…
Cancel
Save