-
Notifications
You must be signed in to change notification settings - Fork 460
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(findBy*): adds findBy* query type allowing for async element queries #224
Conversation
src/query-helpers.js
Outdated
@@ -32,6 +32,7 @@ function getElementError(message, container) { | |||
function firstResultOrNull(queryFunction, ...args) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be renamed to something like "onlyResultOrNull" since it is more strict that the length has to be 1 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I didn't mean to change that yet 😬
e4aa6f9
to
7868dd1
Compare
Codecov Report
@@ Coverage Diff @@
## master #224 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 13 13
Lines 274 293 +19
Branches 68 68
=====================================
+ Hits 274 293 +19
Continue to review full report at Codecov.
|
@all-contributors please add @alecook for review and doc |
I've put up a pull request to add @alecook! 🎉 |
Sweet |
I'm working on docs now. |
🎉 This PR is included in version 3.18.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What: add findBy* query type
Why: Closes #203
How: Created a simple
makeFinder
function and made a finder for every query type based on the getBy queriesChecklist: