File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ _redux-thunk integration_
1212``` javascript
1313import { applyMiddleware , compose , createStore } from ' redux' ;
1414import thunk from ' redux-thunk' ;
15- import { reactReduxFirebase } from ' react-redux-firebase' ;
15+ import firebase from ' firebase' ;
16+ import { reactReduxFirebase , getFirebase } from ' react-redux-firebase' ;
1617import makeRootReducer from ' ./reducers' ;
17- import { getFirebase } from ' react-redux-firebase' ;
1818
1919const fbConfig = {} // your firebase config
20+ firebase .initializeApp (fbConfig)
2021
2122const store = createStore (
2223 makeRootReducer (),
@@ -26,7 +27,7 @@ const store = createStore(
2627 // Pass getFirebase function as extra argument
2728 thunk .withExtraArgument (getFirebase)
2829 ]),
29- reactReduxFirebase (fbConfig )
30+ reactReduxFirebase (firebase )
3031 )
3132);
3233// then later
You can’t perform that action at this time.
0 commit comments