Skip to content

Commit 9b17338

Browse files
author
roger
committed
Fix context to Consumer instead of Provider
1 parent f91ed93 commit 9b17338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firebaseConnect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ export const createFirebaseConnect = (storeKey = 'store') => (
9393
const HoistedComp = hoistStatics(FirebaseConnectWrapped, WrappedComponent)
9494

9595
const FirebaseConnect = props => (
96-
<ReactReduxFirebaseContext.Provider>
96+
<ReactReduxFirebaseContext.Consumer>
9797
{firebase => (
9898
<HoistedComp
9999
firebase={firebase}
100100
dispatch={firebase.dispatch}
101101
{...props}
102102
/>
103103
)}
104-
</ReactReduxFirebaseContext.Provider>
104+
</ReactReduxFirebaseContext.Consumer>
105105
)
106106

107107
FirebaseConnect.propTypes = {

0 commit comments

Comments
 (0)