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

[Q] is update() synchronous? #9

Closed
gaydenko opened this issue Jul 17, 2015 · 2 comments
Closed

[Q] is update() synchronous? #9

gaydenko opened this issue Jul 17, 2015 · 2 comments

Comments

@gaydenko
Copy link

Hi! Documentation says:

update()
Forces to schedule component update.

Usually the word "schedule" is used to denote asynchronous nature. What does it mean at the vidom context?

@dfilatov
Copy link
Owner

Yes, it's asynchronous. "update" actually calls "onRender", calculates patch and if it's not empty, schedules DOM update until the next "onRequestAnimationFrame".

@gaydenko
Copy link
Author

I see, thanks.

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

2 participants