Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Once again about the update mechanism #147

Open
suntong opened this issue Jul 20, 2023 · 0 comments
Open

Once again about the update mechanism #147

suntong opened this issue Jul 20, 2023 · 0 comments

Comments

@suntong
Copy link

suntong commented Jul 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant