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

feat(waitForElementToBeRemoved): support passing an element directly #460

Merged
merged 2 commits into from
Mar 4, 2020

Conversation

kentcdodds
Copy link
Member

What: feat(waitForElementToBeRemoved): support passing an element directly

Why: Makes using this async utility simpler

How: Overload the argument for this so the callback can be a DOM node (or array of DOM nodes). In that case, we capture those and reassign the callback to a function that checks whether those are still contained in their original parent element

Checklist:

Really excited about this one.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 4, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6fe2000:

Sandbox Source
fervent-browser-lmrl8 Configuration

@codecov
Copy link

codecov bot commented Mar 4, 2020

Codecov Report

Merging #460 into beta will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              beta      #460   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          412       419    +7     
  Branches        98       100    +2     
=========================================
+ Hits           412       419    +7     

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5fae126...6fe2000. Read the comment docs.

@kentcdodds
Copy link
Member Author

Feel free to comment later if you have questions or feedback. We can address them before we publish beta.

@kentcdodds kentcdodds merged commit aef3df1 into beta Mar 4, 2020
@kentcdodds kentcdodds deleted the pr/enhance-wait-removed branch March 4, 2020 20:24
@kentcdodds
Copy link
Member Author

🎉 This PR is included in version 7.0.0-beta.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

1 participant