mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-06 02:36:39 +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
|
||||
import {configureStore} from '@reduxjs/toolkit';
|
||||
// Firebase
|
||||
import {firebaseReducer, FirebaseReducer} from 'react-redux-firebase';
|
||||
import {
|
||||
firebaseReducer,
|
||||
FirebaseReducer,
|
||||
FirestoreReducer,
|
||||
} from 'react-redux-firebase';
|
||||
import {firestoreReducer} from 'redux-firestore';
|
||||
// Typing
|
||||
import {Schema} from './firebase/config';
|
||||
|
|
@ -17,6 +21,7 @@ const store = configureStore({
|
|||
// State type
|
||||
export interface RootState {
|
||||
firebase: FirebaseReducer.Reducer<Dev, Schema>;
|
||||
firestore: FirestoreReducer.Reducer;
|
||||
}
|
||||
|
||||
export default store;
|
||||
|
|
|
|||
Loading…
Reference in a new issue