pass updated state to observers

pull/7738/head
Rich Harris 8 years ago
parent c5c0c4c4af
commit b5f7ac2c22

@ -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