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

chore(breaking): deprecate flushMicrotasksQueue #340

Merged
merged 3 commits into from
May 20, 2020

Conversation

mdjastrzebski
Copy link
Member

Summary

Making flushMicrotasksQueue deprecated in favor of findBy and waitFor.

Closes #339

Test plan

return flushMicrotasksQueueInternal();
}

export function flushMicrotasksQueueInternal(): Promise<any> {
Copy link
Member

Choose a reason for hiding this comment

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

Can we call it just flushMicrotasks?

Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed to flushMicroTasks as this is how it's spelled in RTL

@mdjastrzebski mdjastrzebski linked an issue May 20, 2020 that may be closed by this pull request
@thymikee thymikee changed the title Deprecated flushMicrotasksQueue chore(breaking): deprecate flushMicrotasksQueue May 20, 2020
@thymikee thymikee merged commit b595c74 into next May 20, 2020
@thymikee thymikee deleted the feature/deprecate-flush-microtask-queue branch May 20, 2020 14:33
thymikee added a commit that referenced this pull request May 28, 2020
* Deprecated flushMicrotasksQueue

* Update website/docs/Migration20.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>

* Renamed flushMicrotasksQueueInternal to flushMicroTasks

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
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.

Deprecate flushMicrotaskQueue
2 participants