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

[Fiber] Schedule animation regardless of deferred work #8187

Merged
merged 2 commits into from
Nov 2, 2016

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Nov 2, 2016

This fixes the behavior (and changes my remaining tests to test for the right thing).
Even if there's a deferred callback scheduled, we should still schedule animation callback.

I'd be happy to refactor this to functions like ensureAnimatedCallbackScheduled or something if you care. For now just wrote it as inline ifs.

@acdlite
Copy link
Collaborator

acdlite commented Nov 2, 2016

Lol I literally just made the same commit on my PR: b91b47f

@acdlite
Copy link
Collaborator

acdlite commented Nov 2, 2016

Sorry, not commit, I meant the isScheduled thing :D

@sebmarkbage
Copy link
Collaborator

Seems good

@sebmarkbage
Copy link
Collaborator

You've stumbled upon one of @sebmarkbage's famous early optimizations.

@gaearon gaearon merged commit c894679 into facebook:master Nov 2, 2016
@gaearon
Copy link
Collaborator Author

gaearon commented Nov 2, 2016

Trust me it lints.

acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
* Remove comments about implementation details

* Schedule animation regardless of deferred work
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.

4 participants