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

Render after each component update #1373

Merged
merged 1 commit into from
Jul 4, 2020

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Jul 4, 2020

Description

When updating a component, Yew tries to batch updates together for rendering performance. This behavior is not desired when a component wishes to inspect DOM state in between "ShouldRender" update messages. This change ensures that Yew will render a component after each "ShouldRender" update message and will not process messages until the render is complete.

Fixes #1364

Checklist:

  • I have run ./ci/run_stable_checks.sh
  • I have reviewed my own code
  • I have added tests

@jstarry jstarry merged commit 25b42f2 into yewstack:master Jul 4, 2020
jstarry added a commit that referenced this pull request Jul 4, 2020
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

Successfully merging this pull request may close these issues.

send_message was changed to behave synchronously? Then, how can I send a message after view is finished?
1 participant