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

batch update head contents #129

Merged
merged 2 commits into from
Oct 28, 2016
Merged

batch update head contents #129

merged 2 commits into from
Oct 28, 2016

Conversation

nkzawa
Copy link
Contributor

@nkzawa nkzawa commented Oct 28, 2016

Fixes #95

This PR change to update head contents using requestAnimationFrame.

@@ -24,7 +24,6 @@ export default function withSideEffect (reduceComponentsToState, handleStateChan

const mountedInstances = new Set()
let state
let shouldEmitChange = false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a flag not to emit changes many times in a rendering cycle of React, but it's unneeded now.

@nkzawa nkzawa merged commit 037e2d9 into master Oct 28, 2016
@nkzawa nkzawa deleted the fix/head-batch-update branch October 28, 2016 14:39
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant