Skip to content

[Fiber] Schedule animation regardless of deferred work#8187

Merged
gaearon merged 2 commits intofacebook:masterfrom
gaearon:fiber-scheduling-fixes
Nov 2, 2016
Merged

[Fiber] Schedule animation regardless of deferred work#8187
gaearon merged 2 commits intofacebook:masterfrom
gaearon:fiber-scheduling-fixes

Conversation

@gaearon
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

acdlite commented Nov 2, 2016

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

@acdlite
Copy link
Copy Markdown
Collaborator

acdlite commented Nov 2, 2016

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

@sebmarkbage
Copy link
Copy Markdown
Contributor

Seems good

@sebmarkbage
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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