I've been working on my reducers and have come across this piece of code:
import { Reducer, combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import { firebaseReducer } from 'react-redux-firebase';
import { firestoreReducer } from 'redux-firestore';
const reducers: Reducer<ApplicationState> = combineReducers<ApplicationState>({
firebase: firebaseReducer,
firestore: firestoreReducer,
router: routerReducer
});
export { reducers };
While following a tutorial found here
However, I am facing an issue with the firestore
reducer and getting this message:
Argument of type '{ firebase: typeof firebaseReducer; firestore: typeof firestoreReducer; router: Reducer<RouterSta...' is not assignable to parameter of type 'ReducersMapObject'.
Property 'firestore' is incompatible with index signature.
Type 'typeof firestoreReducer' is not assignable to type 'Reducer<any>'.
Type 'typeof firestoreReducer' provides no match for the signature '(state: any, action: AnyAction): any'.
Any ideas on what might be causing this issue and how to resolve it?