You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v3-migration-guide.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
* Support `react-redux` v6 and new React Context API - [#581](https://github.com/prescottprue/react-redux-firebase/issues/581). This mean no more `reactReduxFirebase` and `reduxFirestore` store enhancers (instance is passed through the new React context API) - [#581](https://github.com/prescottprue/react-redux-firebase/issues/581)
6
6
*`componentDidMount` used in place of `componentWillMount` for data loading
7
+
*`getFirebase` no longer part of the API
7
8
8
9
### Remove Store Enhancer
9
10
@@ -14,15 +15,15 @@ Replace store enhancer with `ReactReduxFirebaseProvider`
14
15
_RTDB Diff_
15
16
```diff
16
17
+ import { ReactReduxFirebaseProvider } from 'react-redux-firebase'
17
-
- import { reactReduxFirebase } from 'react-redux-firebase'
18
+
- import { reactReduxFirebase, getFirebase } from 'react-redux-firebase'
18
19
19
20
const store = createStore(
20
21
rootReducer,
21
22
initialState,
22
-
compose(
23
+
- compose(
23
24
- reactReduxFirebase(firebase, rrfConfig), // pass in firebase instance instead of config
24
-
// applyMiddleware(...middleware) // to add other middleware
25
-
)
25
+
- applyMiddleware([ thunk.withExtraArgument(getFirebase) ]) // to add other middleware
0 commit comments