Skip to content

Conversation

@aarajh
Copy link
Contributor

@aarajh aarajh commented Jan 6, 2021

Description

This PR fixes the issues with getFirestore() function not returning the firestore object as mentioned in prescottprue/react-redux-firebase#839 (comment) . To fix it, I've modelled the getFirestore functionality after the getFirebase() function in react-redux-firebase and moved the getFirestore function to createFirestoreInstance.

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/react-redux-firebase#785
prescottprue/react-redux-firebase#839

@codecov
Copy link

codecov bot commented Jan 6, 2021

Codecov Report

Merging #318 (995c840) into master (87830e4) will decrease coverage by 0.12%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #318      +/-   ##
==========================================
- Coverage   90.11%   89.98%   -0.13%     
==========================================
  Files          19       19              
  Lines         627      629       +2     
==========================================
+ Hits          565      566       +1     
- Misses         62       63       +1     
Impacted Files Coverage Δ
src/createFirestoreInstance.js 91.66% <66.66%> (-8.34%) ⬇️
src/index.js 100.00% <100.00%> (ø)

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 87830e4...995c840. Read the comment docs.

@prescottprue
Copy link
Owner

prescottprue commented Jan 6, 2021

Oh interesting... I wonder why this wasn't setup? Thanks for the PR! Will try to get out in a new minor version soon

@prescottprue prescottprue changed the title Fix getFirestore() fix(getFirestore): correctly load extended firestore instance in getFirestore Jan 6, 2021
@prescottprue prescottprue changed the base branch from master to v0.15.0 February 15, 2021 02:07
@prescottprue prescottprue merged commit ddbeb06 into prescottprue:v0.15.0 Feb 15, 2021
@prescottprue prescottprue mentioned this pull request Feb 15, 2021
3 tasks
prescottprue added a commit that referenced this pull request Feb 15, 2021
* fix(getFirestore): correctly load extended firestore instance in `getFirestore` (#318) - @aarajh 
* fix(orderedReducer): reorder items when `newIndex` is zero (#317) - @matthew-h-cromer
* feat(types): add types for reducer (#296, [react-redux-firebase 964](prescottprue/react-redux-firebase#964)) - @msutkowski,@bawahakim
* fix(examples): update complete example patterns + major versions
* build(deps): bump immer from 5.0.0 to 8.0.1 (#320)
* build(deps): bump ini from 1.3.5 to 1.3.8 (#316)
* build(deps): bump ini from 1.3.5 to 1.3.8 in /examples/basic (#315)

Co-Authored-By: Hakim Bawa <[email protected]>
Co-authored-by: Aaraj Habib <[email protected]>
Co-authored-by: matthew-h-cromer <[email protected]>
Co-authored-by: Matt Sutkowski <[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