westore icon indicating copy to clipboard operation
westore copied to clipboard

Once again about the update mechanism

Open suntong opened this issue 2 years ago • 1 comments

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了呢?

suntong avatar Jul 20 '23 18:07 suntong

是不是其他地方 setData 了?

dntzhang avatar Dec 08 '24 01:12 dntzhang