mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-11 21:16:45 +00:00
add firestore reducer
This commit is contained in:
parent
b6ba671b6d
commit
cf120854ee
1 changed files with 6 additions and 1 deletions
|
|
@ -1,7 +1,11 @@
|
||||||
// Redux
|
// Redux
|
||||||
import {configureStore} from '@reduxjs/toolkit';
|
import {configureStore} from '@reduxjs/toolkit';
|
||||||
// Firebase
|
// Firebase
|
||||||
import {firebaseReducer, FirebaseReducer} from 'react-redux-firebase';
|
import {
|
||||||
|
firebaseReducer,
|
||||||
|
FirebaseReducer,
|
||||||
|
FirestoreReducer,
|
||||||
|
} from 'react-redux-firebase';
|
||||||
import {firestoreReducer} from 'redux-firestore';
|
import {firestoreReducer} from 'redux-firestore';
|
||||||
// Typing
|
// Typing
|
||||||
import {Schema} from './firebase/config';
|
import {Schema} from './firebase/config';
|
||||||
|
|
@ -17,6 +21,7 @@ const store = configureStore({
|
||||||
// State type
|
// State type
|
||||||
export interface RootState {
|
export interface RootState {
|
||||||
firebase: FirebaseReducer.Reducer<Dev, Schema>;
|
firebase: FirebaseReducer.Reducer<Dev, Schema>;
|
||||||
|
firestore: FirestoreReducer.Reducer;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default store;
|
export default store;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue