Skip to content

Commit d2de64f

Browse files
author
Scott Prue
committed
Examples updated to use reactReduxFirebase.
1 parent 97b6d0b commit d2de64f

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed

examples/decorators/src/store.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { createStore, compose } from 'redux'
22
import rootReducer from './reducer'
33
import { firebase as fbConfig } from './config'
4-
import { reduxReactFirebase } from 'react-redux-firebase'
5-
// import { reduxFirebase } from 'redux-firebase' // >= v0.1.1
4+
import { reactReduxFirebase } from 'react-redux-firebase'
65

76
export default function configureStore (initialState, history) {
87
const createStoreWithMiddleware = compose(
9-
reduxReactFirebase(fbConfig, { userProfile: 'users', enableLogging: false }),
10-
// reduxFirebase(fbConfig, { userProfile: 'users', enableLogging: false }) // >= v0.1.1
8+
reactReduxFirebase(fbConfig,
9+
{
10+
userProfile: 'users',
11+
enableLogging: false
12+
}
13+
),
1114
typeof window === 'object' && typeof window.devToolsExtension !== 'undefined' ? window.devToolsExtension() : f => f
1215
)(createStore)
1316
const store = createStoreWithMiddleware(rootReducer)

examples/material/src/store/configureStore.dev.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ import { createStore, applyMiddleware, compose } from 'redux'
22
import rootReducer from '../reducers'
33
import { firebase as fbConfig } from '../config'
44
import { syncHistory } from 'react-router-redux'
5-
import { reduxFirebase } from 'react-redux-firebase' // >= v0.1.1
5+
import { reactReduxFirebase } from 'react-redux-firebase' // >= v0.1.1
66

77
export default function configureStore (initialState, history) {
88
const reduxRouterMiddleware = syncHistory(history)
99
const createStoreWithMiddleware = compose(
1010
applyMiddleware(reduxRouterMiddleware),
11-
reduxFirebase(fbConfig, { userProfile: 'users', enableLogging: false }),
11+
reactReduxFirebase(fbConfig,
12+
{
13+
userProfile: 'users',
14+
enableLogging: false
15+
}
16+
),
1217
typeof window === 'object' && typeof window.devToolsExtension !== 'undefined' ? window.devToolsExtension() : f => f
1318
)(createStore)
1419
const store = createStoreWithMiddleware(rootReducer, initialState)

examples/material/src/store/configureStore.prod.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { createStore, compose } from 'redux'
22
import rootReducer from '../reducers'
33
import { firebase as fbConfig } from '../config'
4-
import { reduxReactFirebase } from 'react-redux-firebase' // >= v0.1.0
5-
// import { reduxFirebase } from 'redux-firebase' // >= v0.1.1
4+
import { reduxReactFirebase } from 'react-redux-firebase'
65

76
export default function configureStore (initialState, history) {
87
const createStoreWithMiddleware = compose(
9-
reduxReactFirebase(fbConfig, { userProfile: 'users' }) // >= v0.1.0
10-
// reduxFirebase(fbConfig, { userProfile: 'users' }) // >= v0.1.1
8+
reactReduxFirebase(fbConfig,
9+
{
10+
userProfile: 'users',
11+
enableLogging: false
12+
}
13+
),
1114
)(createStore)
1215
const store = createStoreWithMiddleware(rootReducer, initialState)
1316

examples/simple/src/store.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { createStore, compose } from 'redux'
22
import rootReducer from './reducer'
33
import { firebase as fbConfig } from './config'
4-
import { reduxFirebase } from 'react-redux-firebase'
4+
import { reactReduxFirebase } from 'react-redux-firebase'
55

66
export default function configureStore (initialState, history) {
77
const createStoreWithMiddleware = compose(
8-
reduxFirebase(fbConfig, { userProfile: 'users' }),
8+
reactReduxFirebase(fbConfig,
9+
{
10+
userProfile: 'users',
11+
enableLogging: false
12+
}
13+
),
914
typeof window === 'object' && typeof window.devToolsExtension !== 'undefined' ? window.devToolsExtension() : f => f
1015
)(createStore)
1116
const store = createStoreWithMiddleware(rootReducer)

0 commit comments

Comments
 (0)