File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,16 @@ import { browserHistory } from 'react-router'
1010import { reactReduxFirebase , getFirebase } from ' react-redux-firebase'
1111import makeRootReducer from ' ./reducers'
1212import createSagaMiddleware from ' redux-saga'
13+ import firebase from ' firebase/app' ;
1314
1415const firebaseConfig = {} // firebase configuration including databaseURL
1516const reduxFirebase = {
1617 userProfile: ' users' ,
1718 enableLogging: ' false'
1819}
1920
21+ firebase .initializeApp (firebaseConfig);
22+
2023function * helloSaga (getFirebase ) {
2124 try {
2225 yield getFirebase ().push (' /some/path' , { nice: ' work!' })
@@ -35,7 +38,7 @@ export default (initialState = {}, history) => {
3538 makeRootReducer (),
3639 {}, // initial state
3740 compose (
38- reactReduxFirebase (fbConfig , reduxConfig),
41+ reactReduxFirebase (firebase , reduxConfig),
3942 applyMiddleware (... middleware)
4043 )
4144 )
You can’t perform that action at this time.
0 commit comments