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

Accept Number as valid type for filter array #16

Closed
lrholmes opened this issue May 2, 2018 · 1 comment
Closed

Accept Number as valid type for filter array #16

lrholmes opened this issue May 2, 2018 · 1 comment

Comments

@lrholmes
Copy link

lrholmes commented May 2, 2018

Currently using a number to filter a collection query causes a PropType error, when it is actually valid. In fact, changing the number to a string to silence the warning breaks the filter.

I'm happy to contribute the fix for this, if you can confirm that this project is still being maintained? Hope so!

@green-arrow
Copy link
Owner

@lrholmes - definitely still maintained, I'd be happy to merge a PR for this!

bfirsh added a commit to bfirsh/react-firestore that referenced this issue May 30, 2018
For example: `filter={["thing", "==", db.doc("things/" + thing)]}`

Fixes green-arrow#16
bfirsh added a commit to bfirsh/react-firestore that referenced this issue Jun 1, 2018
For example: `filter={["thing", "==", db.doc("things/" + thing)]}`

fix green-arrow#16
bfirsh added a commit to bfirsh/react-firestore that referenced this issue Jun 7, 2018
For example: `filter={["thing", "==", db.doc("things/" + thing)]}`

fix green-arrow#16
bfirsh added a commit to bfirsh/react-firestore that referenced this issue Jun 7, 2018
For example: `filter={["thing", "==", db.doc("things/" + thing)]}`

fix green-arrow#16
bfirsh added a commit to bfirsh/react-firestore that referenced this issue Jun 7, 2018
For example: `filter={["thing", "==", db.doc("things/" + thing)]}`

fix green-arrow#16
green-arrow pushed a commit that referenced this issue Jun 7, 2018
* docs: Format README.md

The precommit hook did this automatically.

* fix: Allow numbers and objects in filters

For example: `filter={["thing", "==", db.doc("things/" + thing)]}`

Closes #16
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

No branches or pull requests

2 participants