Closed dhuber666 closed 4 years ago
Look at this line from the example:
https://github.com/prescottprue/react-redux-firebase/blob/cd8bfba717108b799b8416121233ce0556fed618/examples/complete/typescript/src/reducer.ts#L20
I did exactly the same thing and in the combineReducer call it looks like this:
combineReducer
const rootReducer = combineReducers<RootState>({ firebase: firebaseReducer, firestore: firestoreReducer, });
But I get this error:
(property) firestore: Reducer<FirestoreReducer.Reducer, any> No overload matches this call. Overload 1 of 3,
Here is a minimal codesandbox link:
https://codesandbox.io/s/great-perlman-p6g7p?file=/src/store/index.ts
(Error at line 54 )
54
It is a brand new project with all the libraries @latest
I think the error might be that the types from FirestoreReducer.Reducer looks correct but the returned value from firestoreReducer is a function that returns any.
FirestoreReducer.Reducer
firestoreReducer
any
Thx and awesome lib! Dom
Going to close since it seems like it was solved by the above noted PR - please reach out if that is not the case
Look at this line from the example:
https://github.com/prescottprue/react-redux-firebase/blob/cd8bfba717108b799b8416121233ce0556fed618/examples/complete/typescript/src/reducer.ts#L20
I did exactly the same thing and in the
combineReducer
call it looks like this:But I get this error:
Here is a minimal codesandbox link:
https://codesandbox.io/s/great-perlman-p6g7p?file=/src/store/index.ts
(Error at line
54
)It is a brand new project with all the libraries @latest
I think the error might be that the types from
FirestoreReducer.Reducer
looks correct but the returned value fromfirestoreReducer
is a function that returnsany
.Thx and awesome lib! Dom