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

Ensure all this.recompute calls are wrapped in a runloop #126

Merged
merged 1 commit into from
May 16, 2019

Conversation

xg-wang
Copy link
Contributor

@xg-wang xg-wang commented May 5, 2019

Ember Helpers recompute doesn't initiate a runloop, it just marks the
element to be dirty and waiting next runloop to start a new render
transaction. By wrapping recompute in a runloop join we can force a
"real" recompute.
Fixing above issue unblocks upgrading ember-test-helper to >= 1.0.1.

Needs #125

References:

@rwjblue
Copy link
Member

rwjblue commented May 14, 2019

I think this is ready for a rebase now that #125 landed

@xg-wang xg-wang force-pushed the dom branch 2 times, most recently from 3089e45 to ebcf501 Compare May 15, 2019 14:42
@xg-wang
Copy link
Contributor Author

xg-wang commented May 15, 2019

@rwjblue rebased again

@rwjblue
Copy link
Member

rwjblue commented May 16, 2019

Ugh, looks like more yarn.lock conflicts (maybe dependabot merges?), sorry @xg-wang

Ember Helpers recompute doesn't initiate a runloop, it just marks the
element to be dirty and waiting next runloop to start a new render
transaction. By wrapping recompute in a runloop join we can force a
"real" recompute.
Fixing above issue unblocks upgrading ember-test-helper to >= 1.0.1.
@xg-wang
Copy link
Contributor Author

xg-wang commented May 16, 2019

@rwjblue Yeah dependabot merged another dep PR this morning

@rwjblue rwjblue merged commit 69f15af into adopted-ember-addons:master May 16, 2019
@rwjblue
Copy link
Member

rwjblue commented May 16, 2019

whew, finally sorry about all that run around @xg-wang

@xg-wang xg-wang deleted the dom branch May 16, 2019 19:29
@xg-wang
Copy link
Contributor Author

xg-wang commented May 16, 2019

np, thank you for taking care of this!

@rwjblue rwjblue changed the title recompute in runloop Ensure all this.recompute calls are wrapped in a runloop May 19, 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.

2 participants