We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f91ed93 commit 9b17338Copy full SHA for 9b17338
src/firebaseConnect.js
@@ -93,15 +93,15 @@ export const createFirebaseConnect = (storeKey = 'store') => (
93
const HoistedComp = hoistStatics(FirebaseConnectWrapped, WrappedComponent)
94
95
const FirebaseConnect = props => (
96
- <ReactReduxFirebaseContext.Provider>
+ <ReactReduxFirebaseContext.Consumer>
97
{firebase => (
98
<HoistedComp
99
firebase={firebase}
100
dispatch={firebase.dispatch}
101
{...props}
102
/>
103
)}
104
- </ReactReduxFirebaseContext.Provider>
+ </ReactReduxFirebaseContext.Consumer>
105
)
106
107
FirebaseConnect.propTypes = {
0 commit comments