Skip to content

Conversation

@rscotten
Copy link
Contributor

@rscotten rscotten commented Feb 3, 2020

Description

Now that prescottprue/redux-firestore#264 has been merged, this updates the Typescript types for Firestore listeners to support collectionGroup.

Note that this PR changes the collection type to be optional, because the developer can now pass in either collection or collectionGroup. If both are accidentally omitted, the code throws an error, so we still have protection.

Check List

If not relevant to pull request, check off as complete

  • All tests passing
  • Docs updated with any changes or examples if applicable
  • Added tests to ensure new feature(s) work properly

Relevant Issues

prescottprue/redux-firestore#264

rscotten and others added 2 commits February 3, 2020 10:37
@rscotten rscotten requested a review from prescottprue February 3, 2020 18:43
@prescottprue prescottprue changed the title Add firestore collection group type feat(types): add firestore collectionGroup type Feb 3, 2020
@codecov
Copy link

codecov bot commented Feb 3, 2020

Codecov Report

Merging #855 into master will decrease coverage by 2.67%.
The diff coverage is 8%.

@@            Coverage Diff             @@
##           master     #855      +/-   ##
==========================================
- Coverage   91.43%   88.76%   -2.68%     
==========================================
  Files          29       29              
  Lines         759      783      +24     
==========================================
+ Hits          694      695       +1     
- Misses         65       88      +23

@prescottprue prescottprue changed the base branch from master to v3.1.1 February 3, 2020 23:06
@prescottprue
Copy link
Owner

Thanks for making the PR so fast! I also really like the explanation of how they can both be optional - great attention to detail

@prescottprue prescottprue merged commit 7607c42 into prescottprue:v3.1.1 Feb 3, 2020
@prescottprue prescottprue mentioned this pull request Feb 3, 2020
3 tasks
prescottprue added a commit that referenced this pull request Feb 4, 2020
* feat(types): add firestore `collectionGroup` type - #855 - @rscotten
* chore(docs): add note about `useFirestoreForProfile` within profile recipes - #849

Co-authored-by: Richard Scotten <[email protected]>
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.

2 participants