Skip to content

Once again about the update mechanism #147

@suntong

Description

@suntong

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:

this.user = new User({
onUserInfoLoaded: () => {
this.data.motto = this.user.motto
this.data.userInfo = this.user.userInfo
this.update()
}
})
}

The update is still happening, which seems odd to me.
How the whole update mechanism works please?

去掉 this.update() 语句 按道理就应该不会update,可为什么又update了呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions