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

Use global state for hasForceUpdate instead of persisting to queue #12808

Merged
merged 3 commits into from
May 15, 2018

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented May 15, 2018

Fixes a bug where hasForceUpdate was not reset on commit.

Ideally we'd use a tuple and return hasForceUpdate from processUpdateQueue.

Fixes a bug where `hasForceUpdate` was not reset on commit.

Ideally we'd use a tuple and return `hasForceUpdate` from
`processUpdateQueue`.
@@ -800,16 +794,14 @@ export default function(
instance,
renderExpirationTime,
);
hasForceUpdate = hasForceUpdate || checkHasForceUpdateAfterProcessing();
Copy link
Collaborator

Choose a reason for hiding this comment

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

How is the first case ever true?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy pasta

@acdlite acdlite merged commit 73f59e6 into facebook:master May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants