Skip to content

Commit

Permalink
v3.0.0-alpha.2
Browse files Browse the repository at this point in the history
* fix(firebaseConnect): switch context to Consumer instead of Provider - @Rizzet
  • Loading branch information
prescottprue authored Dec 16, 2018
2 parents f91ed93 + 11ccaa1 commit fcbcc8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-redux-firebase",
"version": "3.0.0-alpha",
"version": "3.0.0-alpha.2",
"description": "Redux integration for Firebase. Comes with a Higher Order Components for use with React.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/firebaseConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ export const createFirebaseConnect = (storeKey = 'store') => (
const HoistedComp = hoistStatics(FirebaseConnectWrapped, WrappedComponent)

const FirebaseConnect = props => (
<ReactReduxFirebaseContext.Provider>
<ReactReduxFirebaseContext.Consumer>
{firebase => (
<HoistedComp
firebase={firebase}
dispatch={firebase.dispatch}
{...props}
/>
)}
</ReactReduxFirebaseContext.Provider>
</ReactReduxFirebaseContext.Consumer>
)

FirebaseConnect.propTypes = {
Expand Down

0 comments on commit fcbcc8e

Please sign in to comment.