westore
westore copied to clipboard
Once again about the update mechanism
Following up on #146,
I've verified that the console.log(this.data.weather) is correct. The next this.update() should update the view right?
If I comment out the this.update() statement here:
https://github.com/Tencent/westore/blob/4bcdccc74853551e608745317d2e497ed1867cb6/packages/westore-example/stores/user-store.js#L13-L20
The update is still happening, which seems odd to me.
How the whole update mechanism works please?
去掉 this.update() 语句 按道理就应该不会update,可为什么又update了呢?
是不是其他地方 setData 了?